Example #1
0
 public AddWorkerViewModel(AddWorkerView addworkerviewOpen)
 {
     addworkerview          = addworkerviewOpen;
     FloorList              = new ObservableCollection <int>(service.ListOfFloorsForWorker());
     GenderList             = new ObservableCollection <Gender>(service.GetAllGender());
     EngagmentList          = new ObservableCollection <Engagment>(service.GetAllEngagment());
     QualificationLevelList = new ObservableCollection <QualificationLevel>(service.GetAllQualificationLevel());
     UserWorker             = new Worker();
     User = new HotelUser();
 }
Example #2
0
 public void GoToAddWorkerExecute()
 {
     try
     {
         AddWorkerView main = new AddWorkerView();
         main.Show();
         ownerView.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }