private void buttonAdd_Click(object i_Sender, EventArgs i_Args) { if (isFormValid()) { NewFilterGroup = new PostFilterGroup(textBoxGroupName.Text, (ePostPriority)comboBoxPriority.SelectedItem); DialogResult = DialogResult.OK; } }
private void buttonEditMarked_Click(object i_Sender, EventArgs i_Args) { PostFilterGroup postFilterGroup = (PostFilterGroup)postFilterGroupBindingSource.Current; FormEditFilterGroup editFilterGroupForm = new FormEditFilterGroup(); editFilterGroupForm.FilterGroup = postFilterGroup; editFilterGroupForm.ShowDialog(); }
private void checkedListBoxFilterGroups_ItemCheck(object i_Sender, ItemCheckEventArgs i_Args) { PostFilterGroup group = (PostFilterGroup)checkedListBoxFilterGroups.Items[i_Args.Index]; switch (i_Args.NewValue) { case CheckState.Unchecked: group.Enabled = false; break; case CheckState.Checked: group.Enabled = true; break; } }