private void buttonEditMarked_Click(object i_Sender, EventArgs i_Args)
 {
     PostFilterGroup postFilterGroup = (PostFilterGroup)postFilterGroupBindingSource.Current;
     FormEditFilterGroup editFilterGroupForm = new FormEditFilterGroup();
     editFilterGroupForm.FilterGroup = postFilterGroup;
     editFilterGroupForm.ShowDialog();
 }
Exemplo n.º 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();
        }
        private void buttonAddFilter_Click(object i_Sender, EventArgs i_Args)
        {
            if (textBoxAddFilter.Text.Length > 0)
            {
                IPostFilter postFilter = PostFilterFactory.CreatePostFilter(comboBoxFilterKind.Text, textBoxAddFilter.Text);
                if (postFilter is PostFilterGroup)
                {
                    FormEditFilterGroup form = new FormEditFilterGroup();
                    form.FilterGroup = postFilter as PostFilterGroup;
                    form.ShowDialog();
                    if (form.DialogResult == DialogResult.OK)
                    {
                        postFiltersBindingSource.Add(postFilter);
                    }

                    textBoxAddFilter.Text = string.Empty;
                }

                postFiltersBindingSource.Add(postFilter);
                textBoxAddFilter.Text = string.Empty;
            }
        }
        private void buttonAddFilter_Click(object i_Sender, EventArgs i_Args)
        {
            if (textBoxAddFilter.Text.Length > 0)
            {
                IPostFilter postFilter = PostFilterFactory.CreatePostFilter(comboBoxFilterKind.Text, textBoxAddFilter.Text);
                if (postFilter is PostFilterGroup)
                {
                    FormEditFilterGroup form = new FormEditFilterGroup();
                    form.FilterGroup = postFilter as PostFilterGroup;
                    form.ShowDialog();
                    if (form.DialogResult == DialogResult.OK)
                    {
                        postFiltersBindingSource.Add(postFilter);
                    }

                    textBoxAddFilter.Text = string.Empty;
                }

                postFiltersBindingSource.Add(postFilter);
                textBoxAddFilter.Text = string.Empty;
            }
        }