예제 #1
0
 public Form1()
 {
     InitializeComponent();
     chart1.MouseWheel += new MouseEventHandler(ch1_MouseWheel);
     chart1.MouseClick += new MouseEventHandler(ch1_MouseClick);
     chart2.MouseClick += new MouseEventHandler(ch2_MouseClick);
     timeGraph          = new graph(graphDFT);
     freqGraph          = new inverse(graphInverse);
 }
예제 #2
0
        public inverse GetOrCreateInverse(string attributeName)
        {
            if (Items == null)
            {
                Items = new List <object>();
            }

            var attr = Items.OfType <inverse>().FirstOrDefault(a => a.select == attributeName);

            if (attr != null)
            {
                return(attr);
            }

            attr = new inverse {
                select = attributeName
            };
            Items.Add(attr);
            return(attr);
        }
예제 #3
0
        /*
         * Form1 constructor
         *
         *  Constructor for the main form
         *
         */
        public Form1()
        {
            InitializeComponent();
            dft                = new graph(graphDFT);
            inv                = new inverse(graphInverse);
            inv2               = new inverse2(graphInverse2);
            btnEnble           = new enable(EnableButtons);
            chart1.MouseWheel += new MouseEventHandler(chData_MouseWheel);
            chart2.MouseWheel += new MouseEventHandler(chData2_MouseWheel);
            chart3.MouseWheel += new MouseEventHandler(chData3_MouseWheel);
            chart4.MouseWheel += new MouseEventHandler(chData4_MouseWheel);

            chart1.MouseClick += new MouseEventHandler(chart1_MouseClick);
            chart2.MouseClick += new MouseEventHandler(chart2_MouseClick);
            chart3.MouseClick += new MouseEventHandler(chart3_MouseClick);
            chart4.MouseClick += new MouseEventHandler(chart4_MouseClick);

            tableLayoutPanel1.RowStyles[1].Height = 0;
            tableLayoutPanel2.RowStyles[1].Height = 0;

            // Disable data relient buttons
            button2.Enabled   = false;
            button3.Enabled   = false;
            button4.Enabled   = false;
            PlayBtn.Enabled   = false;
            StopBtn.Enabled   = false;
            WndBtn.Enabled    = false;
            FilterBtn.Enabled = false;
            exportToolStripMenuItem.Enabled = false;
            cutToolStripMenuItem.Enabled    = false;
            copyToolStripMenuItem.Enabled   = false;

            this.SetStyle(ControlStyles.DoubleBuffer |
                          ControlStyles.UserPaint |
                          ControlStyles.AllPaintingInWmPaint,
                          true);
            this.UpdateStyles();
        }