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(); }
public void GoToAddWorkerExecute() { try { AddWorkerView main = new AddWorkerView(); main.Show(); ownerView.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }