示例#1
0
        private void CreateNewConfiguration()
        {
            var newItem = new Config.CheckConfiguration();

            using (var form = new ConfigurationForm(newItem))
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    TrySaveNewConfiguration(newItem);
                }
            }
        }
示例#2
0
        private void EditConfiguration()
        {
            var copy = _configuration.Clone();

            using (var form = new ConfigurationForm(copy))
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    SaveConfiguration(copy, ConfigurationFileTextBox.Text);
                }
            }
        }