Пример #1
0
        public FftToolStrip(GraphControl gc, GraphFFT gf)
        {
            graphControl = gc;
             oldGraph = gf;

             this.fft = new System.Windows.Forms.ToolStripButton();

             this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
             this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.fft});
             this.toolStrip.Location = new System.Drawing.Point(0, 0);
             this.toolStrip.Name = "toolStrip2";
             this.toolStrip.Size = new System.Drawing.Size(497, 25);
             this.toolStrip.TabIndex = 1;
             this.toolStrip.Text = "toolStrip2";

             //
             // fft
             //
             this.fft.CheckOnClick = true;
             this.fft.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
             this.fft.Image = null;// ((System.Drawing.Image)(resources.GetObject("fft.Image")));
             this.fft.ImageTransparentColor = System.Drawing.Color.Magenta;
             this.fft.Name = "fft";
             this.fft.Size = new System.Drawing.Size(30, 22);
             this.fft.Text = "FFT";
             this.fft.CheckStateChanged += new System.EventHandler(this.fft_CheckStateChanged);
        }
Пример #2
0
        public FftToolStrip(GraphControl gc, GraphFFT gf)
        {
            graphControl = gc;
            oldGraph     = gf;

            this.fft = new System.Windows.Forms.ToolStripButton();

            this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.fft
            });
            this.toolStrip.Location = new System.Drawing.Point(0, 0);
            this.toolStrip.Name     = "toolStrip2";
            this.toolStrip.Size     = new System.Drawing.Size(497, 25);
            this.toolStrip.TabIndex = 1;
            this.toolStrip.Text     = "toolStrip2";

            //
            // fft
            //
            this.fft.CheckOnClick          = true;
            this.fft.DisplayStyle          = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.fft.Image                 = null;// ((System.Drawing.Image)(resources.GetObject("fft.Image")));
            this.fft.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.fft.Name = "fft";
            this.fft.Size = new System.Drawing.Size(30, 22);
            this.fft.Text = "FFT";
            this.fft.CheckStateChanged += new System.EventHandler(this.fft_CheckStateChanged);
        }
Пример #3
0
        public Graph(Graph g)
        {
            MinX = g.MinX;
             MaxX = g.MaxX;
             DivX = g.DivX;
             unitsX = g.unitsX;

             MinY = g.MinY;
             MaxY = g.MaxY;
             DivY = g.DivY;
             unitsY = g.unitsY;

             MinXD = g.MinXD;
             MaxXD = g.MaxXD;
        }
Пример #4
0
        public Graph SetRenderer(Graph gr)
        {
            Graph oldRenderer = graph;

             if ( graph != null)
             {
            MouseMove -= graph.GraphControl_MouseMove;
            gr.parent = null;
             }

             graph = gr;

             if (graph != null)
             {
            gr.parent = this;
            MouseMove += gr.GraphControl_MouseMove;
             }

             return oldRenderer;
        }
Пример #5
0
 public GraphDigital(Graph g)
     : base(g)
 {
 }
Пример #6
0
 private void fft_CheckStateChanged(object sender, EventArgs e)
 {
     oldGraph = graphControl.SetRenderer(oldGraph);
      graphControl.Invalidate();
 }
Пример #7
0
 private void fft_CheckStateChanged(object sender, EventArgs e)
 {
     oldGraph = graphControl.SetRenderer(oldGraph);
     graphControl.Invalidate();
 }
Пример #8
0
 public GraphAnalog(Graph g)
     : base(g)
 {
 }
Пример #9
0
 public GraphAnalog(Graph g)
     : base(g)
 {
 }