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

                var dismiss = creator.GetTemporaryDismiss();
                var item = ConvertToListViewItem(dismiss);
                ListView.Items.Add(item);
                ListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
            }
        }
        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 selected = ListView.SelectedItems[0].Tag;
            var dismiss = (TemporaryDismiss)selected;
            using (var editor = new TemporaryDismissEditorForm(dismiss))
            {
                var result = editor.ShowDialog();
                if (result != DialogResult.OK)
                    return;

                var newDismiss = editor.GetTemporaryDismiss();
                RemoveDismiss(dismiss);
                AddDismiss(newDismiss);
            }
        }
        private void ContextMenu_ClickAdd(object sender, EventArgs e)
        {
            using (var editor = new TemporaryDismissEditorForm())
            {
                var result = editor.ShowDialog();
                if (result != DialogResult.OK)
                    return;

                var dismiss = editor.GetTemporaryDismiss();
                AddDismiss(dismiss);
            }
        }