Example #1
0
 public void OpenTrainingWindow(Patient _currentPatient, Training _selectedTraining)
 {
     //OpenningWindow.Children.Clear();
     //OpenningWindow.Background = null;
     using (TrainingMenu _trainingMenu = new TrainingMenu(_currentPatient, _selectedTraining))
     {
         _trainingMenu.MainWindow = this;
         _trainingMenu.CloseApp  += CloseApp;
         _trainingMenu.LogOut    += LogOut;
         this.Content             = _trainingMenu;
         //OpenningWindow.Children.Add(_trainingMenu);
     }
 }
 public void OpenTrainingWindow(Patient _currentPatient, Training _selectedTraining)
 {
     //OpenningWindow.Children.Clear();
     //OpenningWindow.Background = null;
     using (TrainingMenu _trainingMenu = new TrainingMenu(_currentPatient, _selectedTraining))
     {
         _trainingMenu.MainWindow = this;
         _trainingMenu.CloseApp += CloseApp;
         _trainingMenu.LogOut += LogOut;
         this.Content = _trainingMenu;
         //OpenningWindow.Children.Add(_trainingMenu);
     }
 }