private void ContextMenuClickAdd(object sender, EventArgs e)
        {
            using (var editor = new DayOfWeekDismissEditorForm())
            {
                var result = editor.ShowDialog(this);
                if (result != DialogResult.OK)
                    return;

                var dismiss = editor.CreateDismiss();
                AddDismiss(dismiss);
            }
        }
        private void ContextMenuClickEdit(object sender, EventArgs e)
        {
            if (ListView.SelectedItems.Count == 0)
            {
                MessageBox.Show(this, "No dismiss selected to edit.", "No dismiss selected", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            var selectedDismiss = (DayOfWeekDismiss)ListView.SelectedItems[0].Tag;
            using (var editor = new DayOfWeekDismissEditorForm(selectedDismiss))
            {
                var result = editor.ShowDialog(this);
                if (result != DialogResult.OK)
                    return;

                var newDismiss = editor.CreateDismiss();
                RemoveDismiss(selectedDismiss);
                AddDismiss(newDismiss);
            }
        }