Пример #1
0
 private void RegistrationExecute()
 {
     try
     {
         RegistrationAdministrator reg = new RegistrationAdministrator();
         reg.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
 public RegistrationAdministratorViewModel(RegistrationAdministrator reg)
 {
     registrationAdministrator = reg;
     newUser          = new tblUser();
     newAdministrator = new tblAdministrator();
     //gender
     genderList     = Service.Service.GetGenderList();
     selectedGender = new tblGender();
     //marriage
     maritalList     = Service.Service.GetMaritalStatusList();
     selectedMarital = new tblMarriageStatu();
     //type
     selectedType = new tblAdminType();
     typeList     = Service.Service.GetTypeAdminList();
 }