private void btnAddServicesCatalog_Click(object sender, EventArgs e) { //Add New Service Catalog ServicesAndCatalog sacc = new ServicesAndCatalog(ButtonEvent.Save); sacc.ShowDialog(); }
private void EditServiceCatalog() { service_catalog serviceCatalog = GetServiceCatalogFromDB(); if (serviceCatalog != null) { ServicesAndCatalog sac = new ServicesAndCatalog(serviceCatalog, ButtonEvent.Edit); sac.headerText.Text = $"Edit Service Catalog : {serviceCatalog.name}"; sac.Show(); } }