Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            for (int i = 1; i < 7; i++)
            {
                rtfv = new RealTimeFilterView();
                if (i == 1) rtfv.Parent = panel1;
                if (i == 2) rtfv.Parent = panel3;
                if (i == 3) rtfv.Parent = panel4;
                if (i == 4) rtfv.Parent = panel5;
                if (i == 5) rtfv.Parent = panel6;
                if (i == 6) rtfv.Parent = panel7;
                rtfv.Dock = DockStyle.Fill;
                rtfv.Caption = "Channel "+i;
                rtfv.Channel = i;
                rtfv.Active = i == 1;
                rtfv.Click += new EventHandler(rtfv_Click);

                if (i == 1)
                {
                    rtfv1 = rtfv;
                    rtfv1.EnterDiagnosticMode = true;
                }
                if (i == 2) rtfv2 = rtfv;
                if (i == 3) rtfv3 = rtfv;
                if (i == 4) rtfv4 = rtfv;
                if (i == 5) rtfv5 = rtfv;
                if (i == 6) rtfv6 = rtfv;
            }
            propertyGrid1.SelectedObject = rtfv1.editor;
        }
Exemplo n.º 2
0
        void rtfv_Click(object sender, EventArgs e)
        {
            RealTimeFilterView rtfv = (RealTimeFilterView)sender;

            propertyGrid1.SelectedObject = rtfv.editor;
        }
Exemplo n.º 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            for (int i = 1; i < 7; i++)
            {
                rtfv = new RealTimeFilterView();
                if (i == 1)
                {
                    rtfv.Parent = panel1;
                }
                if (i == 2)
                {
                    rtfv.Parent = panel3;
                }
                if (i == 3)
                {
                    rtfv.Parent = panel4;
                }
                if (i == 4)
                {
                    rtfv.Parent = panel5;
                }
                if (i == 5)
                {
                    rtfv.Parent = panel6;
                }
                if (i == 6)
                {
                    rtfv.Parent = panel7;
                }
                rtfv.Dock    = DockStyle.Fill;
                rtfv.Caption = "Channel " + i;
                rtfv.Channel = i;
                rtfv.Active  = i == 1;
                rtfv.Click  += new EventHandler(rtfv_Click);

                if (i == 1)
                {
                    rtfv1 = rtfv;
                    rtfv1.EnterDiagnosticMode = true;
                }
                if (i == 2)
                {
                    rtfv2 = rtfv;
                }
                if (i == 3)
                {
                    rtfv3 = rtfv;
                }
                if (i == 4)
                {
                    rtfv4 = rtfv;
                }
                if (i == 5)
                {
                    rtfv5 = rtfv;
                }
                if (i == 6)
                {
                    rtfv6 = rtfv;
                }
            }
            propertyGrid1.SelectedObject = rtfv1.editor;
        }