private void AddService() { var serviceForm = new ServiceForm(); if (serviceForm.ShowDialog() == DialogResult.OK) { XmlWorker.AddService(serviceForm.CurrentService, false); UpdateServicesInformation(); } }
private void EditService() { var serviceForm = new ServiceForm(); if (uiServicesListBox.SelectedItem != null) { serviceForm.CurrentService = (Service)uiServicesListBox.SelectedItem; if (serviceForm.ShowDialog() == DialogResult.OK) { XmlWorker.AddService(serviceForm.CurrentService, true); UpdateServicesInformation(); UpdateClientInformation(); } } }