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