Exemple #1
0
 public void MenuCall(object sender, CQMenuCallEventArgs e)
 {
     if (this.frmAppSetting == null)
     {
         this.frmAppSetting          = new FrmAppSetting();
         this.frmAppSetting.Closing += FrmAppSetting_Closing;
         this.frmAppSetting.Show();      // 显示窗体
     }
     else
     {
         this.frmAppSetting.Activate();  // 将窗体调制到前台激活
     }
 }
Exemple #2
0
 private void FrmAppSetting_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     // 对变量置 null, 因为被关闭的窗口无法重复显示
     this.frmAppSetting = null;
 }