Пример #1
0
        public void CreateNewMachine()
        {
            NewMachineWindow newMachineWindow = new NewMachineWindow();

            newMachineWindow.ShowDialog();

            ReadMachines();
        }
 private void NotificationMessageReceived(NotificationMessage msg)
 {
     if (msg.Notification == "ShowNewMachineWindow")
     {
         this.newMachineWindow             = new NewMachineWindow();
         this.newMachineWindow.DataContext = this;
         this.newMachineWindow.ShowDialog();
         this.newMachineWindow.Focus();
     }
 }