private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (null == this.ly_salesAndrepair_MaopossReportDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();



            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYSalseMange2.ly_salesAndrepair_MaopossReport.Columns, ls);

            filterForm.ShowDialog();

            this.ly_salesAndrepair_MaopossReportBindingSource.Filter = filterForm.GetFilterString();
        }
Esempio n. 2
0
        private void toolStripButton19_Click(object sender, EventArgs e)
        {
            if (null == this.ly_sales_standard_SumDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();



            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYSalseRepair.ly_quality_debug_Sum.Columns, ls);

            filterForm.ShowDialog();

            this.ly_quality_debug_SumBindingSource.Filter = filterForm.GetFilterString();
        }
Esempio n. 3
0
        private void toolStripButton19_Click(object sender, EventArgs e)
        {
            if (null == this.ly_material_task_viewNewDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();

            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYPlanMange.ly_material_task_viewNew.Columns, ls);

            filterForm.ShowDialog();

            string filterstr = filterForm.GetFilterString();

            if (!string.IsNullOrEmpty(filterstr))
            {
                this.ly_material_task_viewNewBindingSource.Filter = "(" + filterstr + ") or 计划编码='合计'";
            }
            AddSummationRow_New(ly_material_task_viewNewBindingSource, ly_material_task_viewNewDataGridView);
        }
Esempio n. 4
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            //if (null == this.sum_queryDataGridView.CurrentRow) return;

            FilterForm filterForm = new FilterForm();



            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.sumCard_DataSet.Sum_query.Columns, ls);

            filterForm.ShowDialog();



            filterString = filterForm.GetFilterString();

            if (null == filterString)
            {
                filterString = "";
            }
            setfilterStr();
            AddSummationRow(sum_queryBindingSource, sum_queryDataGridView);
        }
Esempio n. 5
0
        private void chooseDateFrameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FilterForm filterForm = new FilterForm();

            filterForm.Owner = this;
            filterForm.ShowDialog();
        }
Esempio n. 6
0
        private void toolStripButton11_Click(object sender, EventArgs e)
        {
            FilterForm filterForm = new FilterForm();



            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(ly_inma0010DataGridView.Columns, ls);

            filterForm.ShowDialog();

            string nowfilter = filterForm.GetFilterString();

            if (string.IsNullOrEmpty(nowfilter))
            {
                this.ly_inma0010cpBindingSource.Filter = nowfilter;
            }
            else
            {
                //this.ly_inma0010BindingSource.Filter = "(" + nowfilter + ")" + " or 仓库='总计'";
                this.ly_inma0010cpBindingSource.Filter = nowfilter;
            }
        }
Esempio n. 7
0
        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            if (null == this.ly_sales_contract_standard_ReportDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();


            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYSalseMange2.ly_sales_cost_Report.Columns, ls);

            filterForm.ShowDialog();

            string filterstr = filterForm.GetFilterString();

            if (!string.IsNullOrEmpty(filterstr))
            {
                this.lysalescostReportBindingSource.Filter = "(" + filterstr + ") or 清单号='合计'";
            }
            AddSummationRow_New(lysalescostReportBindingSource, ly_sales_contract_standard_ReportDataGridView);
        }
Esempio n. 8
0
        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            if (null == this.ly_purchase_contract_mainDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();

            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYOutsourceData.ly_outsource_contract_main11.Columns, ls);

            filterForm.ShowDialog();

            this.ly_outsource_contract_main11BindingSource.Filter = filterForm.GetFilterString();

            //this.ly_outsource_contract_main11TableAdapter.Fill(this.lYOutsourceData.ly_outsource_contract_main11, this.dateTimePicker1.Value, this.dateTimePicker2.Value.AddDays(1));

            //AddSummationRow_New(ly_outsource_contract_main11BindingSource, ly_purchase_contract_mainDataGridView);
        }
        private void toolStripButton19_Click(object sender, EventArgs e)
        {
            if (null == this.ly_sales_repair_detail_View_NewDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();

            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYSalseRepair.ly_sales_repair_detail_View_New.Columns, ls);

            filterForm.ShowDialog();

            string filterstr = filterForm.GetFilterString();

            if (!string.IsNullOrEmpty(filterstr))
            {
                this.ly_sales_repair_detail_View_NewBindingSource.Filter = filterstr;
            }
            //AddSummationRow_New(ly_sales_repair_detail_View_NewBindingSource, ly_sales_repair_detail_View_NewDataGridView);
        }
Esempio n. 10
0
        private void toolStripButton19_Click(object sender, EventArgs e)
        {
            if (null == this.ly_production_submit_periodDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();



            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYProductMange.ly_production_submit_period.Columns, ls);

            filterForm.ShowDialog();

            this.ly_production_submit_periodBindingSource.Filter = filterForm.GetFilterString();
        }
Esempio n. 11
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            FilterForm filterForm = new FilterForm();



            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(ly_inma0010DataGridView.Columns, ls);

            filterForm.ShowDialog();

            string nowfilter = filterForm.GetFilterString();

            if (string.IsNullOrEmpty(nowfilter))
            {
                this.lY_InventoryMaintenance_query_newBindingSource.Filter = nowfilter;
            }
            else
            {
                this.lY_InventoryMaintenance_query_newBindingSource.Filter = "(" + nowfilter + ")" + " or 仓库='总计'";
            }

            //CountMoney(lY_InventoryMaintenance_query_newBindingSource, ly_inma0010DataGridView);
        }
Esempio n. 12
0
        private void HandleProcessExited(object sender)
        {
            if (m_filterForm != null)
            {
                m_filterForm.Close();
                m_filterForm = null;
            }

            GameFilePlayAdapter adapter = sender as GameFilePlayAdapter;
            DateTime            dtExit  = DateTime.Now;

            Directory.SetCurrentDirectory(m_workingDirectory);
            m_playInProgress = false;

            if (adapter.SourcePort != null)
            {
                IGameFile gameFile = adapter.GameFile;

                if (gameFile != null)
                {
                    SetMinutesPlayed(dtExit, gameFile);
                }

                if (!string.IsNullOrEmpty(adapter.RecordedFileName))
                {
                    HandleRecordedDemo(adapter, gameFile);
                }

                HandleDetectorFiles(adapter, gameFile);

                if (m_statsReader != null)
                {
                    m_statsReader.Stop();

                    if (m_statsReader.ReadOnClose)
                    {
                        m_statsReader.ReadNow();
                    }

                    if (m_statsReader.Errors.Length > 0)
                    {
                        HandleStatReaderErrors(m_statsReader);
                    }

                    m_statsReader = null;
                }
            }

            IGameFileView view = GetCurrentViewControl();

            view.UpdateGameFile(adapter.GameFile);
            HandleSelectionChange(view, true);
        }
Esempio n. 13
0
        public virtual void FindInfo(ObjectListView olv)
        {
            FilterForm ff = FilterForm.GetInstance(olv);

            if (!ff.Created || !ff.Visible)
            {
                ff.Show();
            }
            else
            {
                ff.Activate();
            }
        }
Esempio n. 14
0
        private bool StartPlay(IGameFile gameFile, ISourcePortData sourcePort, bool screenFilter)
        {
            GameFilePlayAdapter playAdapter = CreatePlayAdapter(m_currentPlayForm, playAdapter_ProcessExited, AppConfiguration);

            m_saveGames = new IFileData[] { };

            if (AppConfiguration.CopySaveFiles)
            {
                CopySaveGames(gameFile, sourcePort);
            }
            CreateFileDetectors(sourcePort);

            if (m_currentPlayForm.PreviewLaunchParameters)
            {
                ShowLaunchParameters(playAdapter, gameFile, sourcePort);
            }

            bool isGameFileIwad = IsGameFileIwad(gameFile);

            if (m_currentPlayForm.SaveStatistics)
            {
                SetupStatsReader(sourcePort, gameFile);
            }

            if (playAdapter.Launch(AppConfiguration.GameFileDirectory, AppConfiguration.TempDirectory,
                                   gameFile, sourcePort, isGameFileIwad))
            {
                m_currentPlayFile = gameFile;

                if (gameFile != null)
                {
                    gameFile.LastPlayed = DateTime.Now;
                    m_dtStartPlay       = DateTime.Now;
                    DataSourceAdapter.UpdateGameFile(gameFile, new GameFileFieldType[] { GameFileFieldType.LastPlayed });
                    UpdateDataSourceViews(gameFile);
                }
            }
            else
            {
                MessageBox.Show(this, playAdapter.LastError, "Launch Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(false);
            }

            if (screenFilter)
            {
                m_filterForm = new FilterForm(Screen.FromControl(this), m_currentPlayForm.GetFilterSettings());
                m_filterForm.Show(this);
            }

            return(true);
        }
Esempio n. 15
0
        public static void ApplyErrorAction(ExtensionManager extensionManager, FilterForm form)
        {
            if (null == extensionManager)
            {
                throw new ArgumentNullException(nameof(extensionManager));
            }

            if (null == form)
            {
                throw new ArgumentNullException(nameof(form));
            }

            form.ErrorAction = GetErrorAction(extensionManager, form);
        }
Esempio n. 16
0
        private int InitFilterForm()
        {
            dataBaseManager        = new DataBaseManager();
            filterForm             = new FilterForm();
            filterForm.Text        = filterName;
            filterForm.SelectItem += new FilterForm.SelectItemHandle(filterForm_SelectItem);
            DataSet ds = GetDataSet();

            if (ds == null)
            {
                return(-1);
            }
            return(filterForm.InitFilter(ds));
        }
Esempio n. 17
0
        public static FilterForm Instance(Mainform frmMain)
        {
            if (sForm == null)
            {
                sForm = new FilterForm(frmMain);
            }

            else
            {
                sForm.Close();
                sForm = null;
                sForm = new FilterForm(frmMain);
            }

            return(sForm);
        }
Esempio n. 18
0
 private void FilterButton_Click(object sender, EventArgs e)
 {
     if (filterForm == null)
     {
         filterForm = new FilterForm(this);
     }
     else
     {
         filterForm.BringToFront();
         filterForm.FilterForm_Load(sender, e);
     }
     this.Enabled = false;
     filterForm.Show();
     //comboBox1.Items.Add("lul");
     //comboBox1.Items.Add("kek");
     //comboBox1.Items.Add("aru");
 }
Esempio n. 19
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            FilterForm filterForm = new FilterForm();



            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(ly_inma0010_inoutDataGridView.Columns, ls);

            filterForm.ShowDialog();

            this.ly_waste_inoutBindingSource.Filter = filterForm.GetFilterString();
        }
Esempio n. 20
0
        public PluginControl()
        {
            InitializeComponent();

            var allItems = new AllItems();

            dockPanel1.Theme = new VS2015LightTheme();

            filterForm = new FilterForm(allItems);
            filterForm.Show(dockPanel1, DockState.DockLeft);
            filterForm.FilterChanged += FilterForm_FilterChanged;

            detailsForm = new DetailsForm();
            detailsForm.Show(dockPanel1, DockState.DockBottom);

            traceForm = new TraceForm(allItems);
            traceForm.Show(dockPanel1, DockState.Document);
            traceForm.TraceSelected += TraceForm_TraceSelected;
        }
Esempio n. 21
0
        private void LinkLabelEdit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            using (FilterForm filterForm = new FilterForm(Filter.Clone()))
            {
                if (filterForm.ShowDialog(this) != DialogResult.OK)
                {
                    return;
                }

                FilterType fromType = Filter.Type;
                FilterType toType   = filterForm.Filter.Type;

                Filter = filterForm.Filter;
                UpdateInfo();
                Invalidate();

                RaiseChangedEvent(fromType, toType);
            }
        }
Esempio n. 22
0
        /// <summary>
        ///     Click event handler when 'Filter' menu item is clicked.
        /// </summary>
        /// <param name="sender">sender of this event.</param>
        /// <param name="e">Event argument of this handler.</param>
        private void FilterSettingToolItem_Click(object sender, EventArgs e)
        {
            try
            {
                var tn = TreeView.SelectedNode;

                if (tn?.Text.Trim()
                    .StartsWithAnItemInArray(_filterableNodes) == true)
                {
                    var filterForm = tn.Tag as FilterForm;

                    if (filterForm == null)
                    {
                        filterForm = new FilterForm(_server, tn.Parent.Text.Trim());
                        tn.Tag     = filterForm;
                    }

                    if (filterForm.ShowDialog(this) == DialogResult.OK)
                    {
                        if (filterForm.FilterText.Length > 0)
                        {
                            var dbObjectFilter = filterForm.FilterText.Trim();
                            var filterType     = filterForm.FilterType.Trim();
                            FilterNode(tn, dbObjectFilter, filterType);

                            if (!tn.Text.EndsWith(Constants.FILTERED_TEXT))
                            {
                                tn.Text = tn.Text + Constants.FILTERED_TEXT;
                            }
                        }
                        else
                        {
                            ResetFilter(tn);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ErrorViewerForm.ShowError(ex, this);
            }
        }
Esempio n. 23
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            if (null == this.ly_store_outnumDateDataGridView.CurrentRow)
            {
                return;
            }
            FilterForm filterForm = new FilterForm();



            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(ly_store_outnumDateDataGridView.Columns, ls);

            filterForm.ShowDialog();

            this.ly_store_outnumDateBindingSource.Filter = filterForm.GetFilterString();
        }
Esempio n. 24
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (null == this.ly_purchase_contract_inspectionRepDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();



            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYQualityInspector.qz_dz_report.Columns, ls);

            filterForm.ShowDialog();

            this.qzdzreportBindingSource.Filter = filterForm.GetFilterString();
        }
Esempio n. 25
0
        //private void chehao_Click(object sender, EventArgs e)
        //{
        //    string sel = "SELECT distinct vehicle_code as 车号 FROM YX_daywork_record " +

        //    " where vehicle_code is not null and len(vehicle_code) > 0 and (service_number is null or len(service_number) < 1) ";


        //    QueryForm queryForm = new QueryForm();


        //    queryForm.Sel = sel;
        //    queryForm.Constr = SQLDatabase.Connectstring;

        //    //Set the Column Collection to the filter Table
        //    //queryForm.SetSourceColumns(this.billMainDataSet.BalanceBill.Columns);

        //    queryForm.ShowDialog();

        //    this.textBox3.Text = queryForm.Result;
        //}

        //private void kehu_Click(object sender, EventArgs e)
        //{

        //    string sel = "SELECT  Name as 姓名, Card_number as 卡号 FROM YX_client";


        //    QueryForm queryForm = new QueryForm();


        //    queryForm.Sel = sel;
        //    queryForm.Constr = SQLDatabase.Connectstring;

        //    //Set the Column Collection to the filter Table
        //    //queryForm.SetSourceColumns(this.billMainDataSet.BalanceBill.Columns);

        //    queryForm.ShowDialog();

        //    this.textBox3.Text = queryForm.Result;
        //}

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (null == ds)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();

            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string> ();

            ls.Add("id");


            filterForm.SetSourceColumns(ds.Tables[0].Columns, ls);

            filterForm.ShowDialog();

            this.bindingSource2.Filter = filterForm.GetFilterString();
        }
Esempio n. 26
0
        public MainControl()
        {
            _mainForm = new MainForm();
            _mainForm.Init(this);
            _testForm = new TestForm();
            _testForm.Init(this);
            _fetcherForm       = new FetcherForm();
            _tagManagementForm = new TagManagementForm();
            _tagManagementForm.Init(this);
            _viewerForm = new ViewerForm();
            _viewerForm.Init(this);
            _filterForm  = new FilterForm();
            _persistence = new FakePersistenceSimulator();
            _fileStorage = new HierarchyFileStorage();
            _crawler     = new SimpleCrawler();

            _fetcherDict        = new Dictionary <string, IFetcher>();
            _fetcherDict["skk"] = new SkkFetcher();
            _fetcherDict["skk"].Init(this);

            _retryIntervalPage  = RETRY_INTERVAL_PAGE;
            _retryIntervalIndex = RETRY_INTERVAL_INDEX;
        }
Esempio n. 27
0
        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            if (null == this.dataGridView5.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();



            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYSalseMange.GetOrderByBussCodeAll.Columns, ls);

            filterForm.ShowDialog();

            this.getOrderByBussCodeAllBindingSource.Filter = filterForm.GetFilterString();
            AddSummationRow_New(getOrderByBussCodeAllBindingSource, dataGridView5);
        }
Esempio n. 28
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (null == this.dataGridView1.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();

            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYSalseMange2.ly_plan_getmaterial_department.Columns, ls);

            filterForm.ShowDialog();

            this.ly_plan_getmaterial_departmentBindingSource1.Filter = filterForm.GetFilterString();
        }
Esempio n. 29
0
        private void toolStripButton7_Click(object sender, EventArgs e)
        {
            if (null == this.ly_purchase_contract_mainDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();

            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYMaterielRequirements.ly_purchase_contract_main11.Columns, ls);

            filterForm.ShowDialog();

            this.ly_purchase_contract_main11BindingSource.Filter = filterForm.GetFilterString();
            //////AddSummationRow_New(ly_sales_repairstandard_ReportBindingSource, ly_sales_contract_standard_ReportDataGridView);
        }
Esempio n. 30
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (null == this.lY_qualityDebug_historyInfoDataGridView.CurrentRow)
            {
                return;
            }

            FilterForm filterForm = new FilterForm();

            //SumQueryDataSet qds;
            //qds = new SumQueryDataSet();

            List <string> ls = new List <string>();

            ls.Add("id");


            filterForm.SetSourceColumns(this.lYSalseMange.LY_qualityDebug_historyInfo.Columns, ls);

            filterForm.ShowDialog();

            this.lY_qualityDebug_historyInfoBindingSource.Filter = filterForm.GetFilterString();
            //AddSummationRow_New(ly_sales_repairstandard_ReportBindingSource, ly_sales_contract_standard_ReportDataGridView);
        }
        protected void btnPostFilters_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                return;
            }

            int ch_num = int.Parse(((PictureButton)sender).Name.Substring(5, 1));

            int settings_index, plainfilter_index;
            FilterConfig[] cached_filters = new FilterConfig[6];

            for (int i = 3; i < 9; i++)
            {
                if (PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i] != null)
                {
                    cached_filters[i-3] = (FilterConfig)PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i].Clone();
                }
            }

            using (FilterForm filterForm = new FilterForm(this, ch_num, true))
            {
                DialogResult showBlock = filterForm.ShowDialog(this);

                if (showBlock == DialogResult.Cancel)
                {

                    for (int i = 3; i < 9; i++)
                    {
                        settings_index = (40) + ((ch_num - 1) * 45) + (i * 5);
                        plainfilter_index = (300) + ((ch_num - 1) * 27) + (i * 3);

                        if (cached_filters[i - 3] != null)
                        {
                            PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i] = (FilterConfig) cached_filters[i - 3].Clone();
                            if (LIVE_MODE)
                            {
                                PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i].QueueChange(this, settings_index, plainfilter_index, ch_num);
                            }
                        } else
                        {
                            if (LIVE_MODE)
                            {
                                // Filter doesn't exist... SO... let's just send a blank one
                                new FilterConfig(FilterType.None, true).QueueChange(this, settings_index, plainfilter_index, ch_num);
                            }
                        }
                    }

                }
                else
                {
                    UpdateTooltips();
                }

            }
        }
        protected void btnPreFilters_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
            {
                return;
            }

            int ch_num = int.Parse(((PictureButton)sender).Name.Substring(5, 1));

            int settings_index, plainfilter_index;

            FilterConfig[] cached_filters = new FilterConfig[3];

            for (int i = 0; i < 3; i ++)
            {
                if (PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i] != null)
                {
                    if (PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i] != null)
                    {
                        cached_filters[i] = (FilterConfig) PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i].Clone();
                    }
                }
            }

            using (FilterForm filterForm = new FilterForm(this, ch_num))
            {
                filterForm.Height = 500;

                DialogResult showBlock = filterForm.ShowDialog(this);

                if (showBlock == DialogResult.Cancel)
                {

                    for (int i = 0; i < 3; i++)
                    {
                        if (cached_filters[i] != null)
                        {
                            settings_index = (40) + ((ch_num - 1) * 45) + (i * 5);
                            plainfilter_index = (300) + ((ch_num - 1) * 27) + (i * 3);

                            PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i] = (FilterConfig) cached_filters[i].Clone();

                            if(LIVE_MODE)
                            {
                                PROGRAMS[CURRENT_PROGRAM].filters[ch_num - 1][i].QueueChange(this, settings_index, plainfilter_index, ch_num);
                            }
                        }
                    }

                }
                else
                {
                    UpdateTooltips();
                }
            }
        }
 public override void Run()
 {
     FilterForm form =  new FilterForm { BackColor = Color.Aqua };
     form.Show();
 }