Пример #1
0
 public void ConnectMachine(string mchineId)
 {
     if (this.controllerWindow == null)
     {
         Application.Current.Dispatcher.Invoke(() =>
         {
             this.controllerWindow         = new ControllerWindowView();
             this.controllerWindow.Closed += ControllerWindow_Closed;
             this.controllerWindow.Show();
         });
     }
     this.controllerWindow.ConnectMachine(mchineId);
 }
Пример #2
0
 private void ControllerWindow_Closed(object sender, EventArgs e)
 {
     this.controllerWindow = null;
 }