示例#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();
                }
            }
        }