Exemplo n.º 1
0
        private void TrainingMenu_Loaded(object sender, RoutedEventArgs e)
        {
            _trainingSelection = new UC_TrainingSelection(_currentPatient, _currentTraining);
            _exerciseSelection = new UC_ExerciseSelection(_currentTraining);
            _userInfo = new UC_UserInfo(_currentPatient);

            watch = new System.Diagnostics.Stopwatch();
            watch.Start();

            Task downloadGDBTask = new Task(DownloadGDBFiles);
            downloadGDBTask.Start();
            
            AttachDelegates();
            AddToUI();
            
        }
Exemplo n.º 2
0
        private void TreatmentMenu_Loaded(object sender, RoutedEventArgs e)
        {
            //create the user controls inside this window.
            _treatmentSelection = new UC_TreatmentSelection(_currentPatient.PatientTreatment);
            _trainingSeleciton = new UC_TrainingProgramSelection(_currentPatient.PatientTreatment);
            _userInfo = new UC_UserInfo(_currentPatient);
            //TrainingSelectedDelegate trainingSelected = new TrainingSelectedDelegate(_trainingSeleciton_trainingSelectedEvent);

            //attach training selection handler
            _trainingSeleciton.trainingSelectedEvent += _trainingSeleciton_trainingSelectedEvent;

            //attach the handlers
            _userInfo.closeApp += CloseApp;
            _userInfo.logOut += LogOut;

            //Add the user control into this window
            TreatmentMenuGrid.Children.Add(_treatmentSelection);
            TreatmentMenuGrid.Children.Add(_trainingSeleciton);
            TreatmentMenuGrid.Children.Add(_userInfo);

            Grid.SetColumn(_treatmentSelection, 0);
            Grid.SetColumn(_trainingSeleciton, 1);
            Grid.SetColumn(_userInfo, 2);
        }