Esempio n. 1
0
 private void CreateTeacherFromInputData()
 {
     _teacher.User.UserType         = UserType.Teacher;
     _teacher.User.Account.Password = PasswordBoxPassword.Password;
     _teacher.User.Gender           = GenderParser.ParseFromRadioButtonsToObject(ManRadioButton);
     _teacher.User.Account.Password = PasswordBoxPassword.Password;
     _teacher.RegistrationDate      = DateTime.Now;
 }
 private void CreateCoordinatorFromInputData()
 {
     Coordinator.User.Gender = GenderParser.ParseFromRadioButtonsToObject(ManRadioButton);
     int selectedTag = int.Parse(((ComboBoxItem)ComboBoxCoordinatorStatus.SelectedItem).Tag.ToString());
     if (selectedTag == 0)
     {
         Coordinator.User.UserStatus = UserStatus.INACTIVE;
     }
     else
     {
         Coordinator.User.UserStatus = UserStatus.ACTIVE;
     }
 }
Esempio n. 3
0
 private void CreateCoordinatorFromInputData()
 {
     Coordinator.User.UserType         = UserType.Coordinator;
     Coordinator.User.Account.Password = PasswordBoxPassword.Password;
     Coordinator.User.Gender           = GenderParser.ParseFromRadioButtonsToObject(ManRadioButton);
 }