Esempio n. 1
0
 public void CloseCmdWindow()
 {
     if (cmdWin != null && cmdWin.IsLoaded && cmdWin.IsVisible)
     {
         cmdWin.Close();
         cmdWin = null;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 打开cmd
 /// </summary>
 public void OpenCmdWindow()
 {
     if (cmdWin == null)
     {
         cmdWin = new CmdWindow();
     }
     cmdWin.Show();
     cmdWin.Activate();
 }