示例#1
0
文件: Login.cs 项目: lexzh/Myproject
 private void Login_Load(object sender, EventArgs e)
 {
     RemotingClient.iniResult();
     Record.execDeleteRecord();
     Record.execDeletePic();
     this.Text = Variable.sLoginTitle + "V" + Variable.sVersion;
     this.lblLoginTitle.Text = Variable.sLoginTitle;
     //this.lblLoginVersion.Text = Variable.sVersion;
     if (File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Icon\login.jpg")))
     {
         this.BackgroundImage = Image.FromFile(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Icon\login.jpg"));
     }
     this.txtCenter.Text = Variable.sServerIp;
     this.txtUser.Text   = Variable.sUserId;
     if ("1".Equals(Variable.sCheckAdc))
     {
         this.txtAdc.Text = Variable.sAdcNo;
         this.isAdcForm();
     }
     else
     {
         this.iniNoAdcForm();
     }
     base.MouseDown += new MouseEventHandler(this.Login_MouseDown);
     this.lblLoginTitle.MouseDown   += new MouseEventHandler(this.Login_MouseDown);
     this.lblLoginVersion.MouseDown += new MouseEventHandler(this.Login_MouseDown);
     this.myCountDown         = new dCountDown(this.execCountDown);
     this.tCountDown          = new System.Timers.Timer(1000.0);
     this.tCountDown.Elapsed += new ElapsedEventHandler(this.tCountDown_Elapsed);
 }
示例#2
0
文件: Login.cs 项目: lexzh/Myproject
 private void Login_Load(object sender, EventArgs e)
 {
     RemotingClient.iniResult();
     Record.execDeleteRecord();
     Record.execDeletePic();
     this.Text = Variable.sLoginTitle + "V" + Variable.sVersion;
     this.lblLoginTitle.Text = Variable.sLoginTitle;
     //this.lblLoginVersion.Text = Variable.sVersion;
     if (File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Icon\login.jpg")))
     {
         this.BackgroundImage = Image.FromFile(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Icon\login.jpg"));
     }
     this.txtCenter.Text = Variable.sServerIp;
     this.txtUser.Text = Variable.sUserId;
     if ("1".Equals(Variable.sCheckAdc))
     {
         this.txtAdc.Text = Variable.sAdcNo;
         this.isAdcForm();
     }
     else
     {
         this.iniNoAdcForm();
     }
     base.MouseDown += new MouseEventHandler(this.Login_MouseDown);
     this.lblLoginTitle.MouseDown += new MouseEventHandler(this.Login_MouseDown);
     this.lblLoginVersion.MouseDown += new MouseEventHandler(this.Login_MouseDown);
     this.myCountDown = new dCountDown(this.execCountDown);
     this.tCountDown = new System.Timers.Timer(1000.0);
     this.tCountDown.Elapsed += new ElapsedEventHandler(this.tCountDown_Elapsed);
 }