using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using DevComponents.DotNetBar; namespace WCS { public partial class exit : Office2007Form { #region 注释 //public exit(string txt,string title,int type) //{ // InitializeComponent(); // txtarea.Text = txt; // this.Text = title; // //1--问题 // if (type == 1) // { // this.pb.BackgroundImage = Image.FromFile(Common.picpath + "question.png"); // } // //2--Warn // else if (type == 2) // { // this.pb.BackgroundImage = Image.FromFile(Common.picpath + "warn.png"); // } // //3--错误 // else // { // this.pb.BackgroundImage = Image.FromFile(Common.picpath + "err.png"); // } //} #endregion public exit() { InitializeComponent(); } private void exit_Load(object sender, EventArgs e) { Common.sysinfo = false; textBoxX1.Focus(); //no.Focus(); } private void no_Click(object sender, EventArgs e) { Common.sysinfo = false; this.Close(); } private void yes_Click(object sender, EventArgs e) { if (textBoxX1.Text == "ds1234") { Common.sysinfo = true; this.Close(); } else { MessageBox.Show("密码错误"); } } } }