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