示例#1
0
 //Show Monitor window in modal 
 public void OpenMonitorWindow()
 {
     if (ppWinMonitor != null)
     {
         //ppWinMonitor.Close();
         ppWinMonitor.Top = ppWinMonitor.PixTop;
         ppWinMonitor.Left = ppWinMonitor.PixLeft;
     }
     else
     {
         ppWinMonitor = new MonitorWindow();
         ppWinMonitor.Owner = this;
         Boolean blnExit = (Boolean)ppWinMonitor.ShowDialog();
         if (blnExit)
         {
             //Shut application down.
             Application.Current.Shutdown();
         }
     }
 }
示例#2
0
 private void ShowMonitorWindow()
 {
     Boolean  blnExit = false;
     MonitorWindow ppWin;
     while (!blnExit) {
         ppWin = new MonitorWindow();
         ppWin.Owner = this.Owner;
         blnExit = (Boolean)ppWin.ShowDialog();          
     }
     Application.Current.Shutdown();
 }