public void GoToInstitutionExecute() { try { InstitutionView main = new InstitutionView(user); main.Show(); administratorView.Close(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public InstitutionViewModel(ClinicUser user, InstitutionView institutionViewOpen) { this.user = user; institutionView = institutionViewOpen; ListOFInstitution = new ObservableCollection <Institution>(service.GetAllInstitution()); }