示例#1
0
        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (m_FTObjects == null)
            {
                //add something telling user options are not available
                return;
            }
            if (m_FTObjects.CurrentMonitorGroup != null)
            {
                Options o = m_FTObjects.GetOptions();
                if (o == null)
                {
                    //Todo add something telling user options are not available
                    return;
                }

                //MGPro pro = new MGPro();

                List<string> monitor = new List<string>();
                List<string> FilterStrings;
                monitor.AddRange(m_FTObjects.GetLocationsInMonitorGroup());
               // pro.monitor = monitor;
                FilterStrings= m_FTObjects.GetFilters();
              //  pro.SetOptions(o);
                SelectFilterFromMonitorGroup gr = new SelectFilterFromMonitorGroup(o, monitor);
                gr.ShowDialog();
                if (this.InvokeRequired)
                {
                    int a = 1 + 2;
                }
             //   pro.ShowDialog(this);

              //  if (pro.DialogResult == DialogResult.OK)
                if(gr.DialogResult == DialogResult.OK)
                {
                    o.filtCh = gr.GetFilterList();

                    new Thread(new ParameterizedThreadStart(SendOptions)).Start(o);
                }
              //  pro.Dispose();
                gr.Dispose();
            }
        }