예제 #1
0
        private void btnAddServicesCatalog_Click(object sender, EventArgs e)
        {
            //Add New Service Catalog
            ServicesAndCatalog sacc = new ServicesAndCatalog(ButtonEvent.Save);

            sacc.ShowDialog();
        }
예제 #2
0
        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();
            }
        }