コード例 #1
0
 void FrmMain_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.TreadMessage.IsAlive)
     {
         this.TreadMessage.Abort();
     }
     FrmStyle.CloseForm(this);
 }
コード例 #2
0
 void FrmLogon_Load(object sender, EventArgs e)
 {
     FrmStyle.LoadForm(this);
     if (JERPData.ServerParameter.ServerName.ToLower().IndexOf("local") > -1)
     {
         //个人版的也要给老子注册
         string sourcecode;
         FrmMsg.Show("正在验证中,请稍候....");
         this.UserRegisterFlag = Config.FrmUserRegister.IsPass(out sourcecode);
         FrmMsg.Hide();
         if (!this.UserRegisterFlag)
         {
             if (frmregist == null)
             {
                 frmregist = new Config.FrmUserRegister(sourcecode);
                 frmregist.AffterRegister += new JERPApp.Config.FrmUserRegister.AffterRisterDelegate(frmregist_AffterRegister);
             }
             frmregist.ShowDialog();
         }
     }
 }