コード例 #1
0
ファイル: WinRecoverRStd.cs プロジェクト: 0000duck/TW_CT2
 public new static WinRecoverRobotStd GetWinInst(out bool blNew)
 {
     blNew = false;
     if (g_WinRecover == null)
     {
         blNew        = true;
         g_WinRecover = new WinRecoverRobotStd();
     }
     return(g_WinRecover);
 }
コード例 #2
0
ファイル: WinRecoverRStd.cs プロジェクト: 0000duck/TW_CT2
 /// <summary>
 /// 关闭窗口
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public override void BaseWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     try
     {
         g_WinRecover = null;
     }
     catch (Exception ex)
     {
         Log.L_I.WriteError(NameClass, ex);
     }
 }
コード例 #3
0
        private void BaseWindow_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
        {
            try
            {
                //非厂商登录
                if (Authority.Authority_e != Authority_enum.Manufacturer)
                {
                    return;
                }

                bool blNew             = false;
                WinRecoverRobotStd win = WinRecoverRobotStd.GetWinInst(out blNew);
                win.Show();
                if (blNew)
                {
                    win.RecoverPar_event += Win_RecoverPar_event;
                }
            }
            catch (Exception ex)
            {
                Log.L_I.WriteError(NameClass, ex);
            }
        }