Esempio n. 1
0
        /// <summary>
        /// The exclusions edit button edits an exclusion unless there is an error
        /// </summary>
        private void Button_ExclusionsEdit_Click(object sender, EventArgs e)
        {
            if (List_Exclusions.SelectedItem != null)
            {
                exclusionWindow = new ExclusionEditingWindow(false, this);
                exclusionWindow.LoadFields(
                    (string)List_Exclusions.SelectedItem,
                    exclusionRecursiveDefinitions[(string)List_Exclusions.SelectedItem]);
                exclusionWindow.ShowDialog();
            }

            else
            {
                HandleListErrors();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// The exclusions add button opens the exclusion editing window
 /// </summary>
 private void Button_ExclusionsAdd_Click(object sender, EventArgs e)
 {
     exclusionWindow = new ExclusionEditingWindow(true, this);
     exclusionWindow.ShowDialog();
 }