예제 #1
0
        private void AddService()
        {
            var serviceForm = new ServiceForm();

            if (serviceForm.ShowDialog() == DialogResult.OK)
            {
                XmlWorker.AddService(serviceForm.CurrentService, false);
                UpdateServicesInformation();
            }
        }
예제 #2
0
        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();
                }
            }
        }