public SetResponsibilityViewModel(SetResponsibilityView setResponsibilityView, vwManager managerLogedIn) { view = setResponsibilityView; ResList = new List <string>() { "1", "2", "3" }; menagerService = new ManagerService(); Manager = managerLogedIn; }
private void SetResponsibilityExecute() { try { SetResponsibilityView setResponsibility = new SetResponsibilityView(Manager); setResponsibility.ShowDialog(); ManagerList = managerService.GetManagers(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }