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); }
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); }
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; }
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; }
public GraphDigital(Graph g) : base(g) { }
private void fft_CheckStateChanged(object sender, EventArgs e) { oldGraph = graphControl.SetRenderer(oldGraph); graphControl.Invalidate(); }
public GraphAnalog(Graph g) : base(g) { }