public void AddExecute() { try { MaintenanceAddFormView form = new MaintenanceAddFormView(); form.ShowDialog(); MaintenanceList = maintenances.ViewAllMaintenances(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public MaintenanceAddFormViewModel(MaintenanceAddFormView maintenanceView) { this.maintenanceView = maintenanceView; ClinicMaintenance = new vwClinicMaintenance(); GenderList = genders.GetGenders(); }