コード例 #1
0
 private void buttonAdd_Click(object i_Sender, EventArgs i_Args)
 {
     if (isFormValid())
     {
         NewFilterGroup = new PostFilterGroup(textBoxGroupName.Text, (ePostPriority)comboBoxPriority.SelectedItem);
         DialogResult   = DialogResult.OK;
     }
 }
コード例 #2
0
        private void buttonEditMarked_Click(object i_Sender, EventArgs i_Args)
        {
            PostFilterGroup     postFilterGroup     = (PostFilterGroup)postFilterGroupBindingSource.Current;
            FormEditFilterGroup editFilterGroupForm = new FormEditFilterGroup();

            editFilterGroupForm.FilterGroup = postFilterGroup;
            editFilterGroupForm.ShowDialog();
        }
コード例 #3
0
        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;
            }
        }