private SampleType(string name, Func<string> getLabelFunc, Color color, SymbolType symbolType) { Name = name; _getLabelFunc = getLabelFunc; Color = color; SymbolType = symbolType; }
private SampleType(string name, Func <string> getLabelFunc, Color color, SymbolType symbolType) { Name = name; _getLabelFunc = getLabelFunc; Color = color; SymbolType = symbolType; }
public SynapseGraphTrace(string label, TraceType type, IList <SynapseGraphPoint> list, Color color, ZedGraph.SymbolType symbol, object Tag, XAxisType xType = XAxisType.Values) { _type = type; _xType = xType; _PointList = list; _label = label; _color = color; _symbol = symbol; _tag = Tag; }
public SymbolObj(ZedGraph.SymbolType type, Color color, PointF position, float size) { this.symbol = new ZedGraph.Symbol(type, color); this.symbol.Size = size; if ((type == SymbolType.Plus || type == SymbolType.Star || type == SymbolType.HDash || type == SymbolType.XCross || type == SymbolType.VDash) && size >= 4) { this.symbol.Border.Width = 3f; } this.symbol.Fill.IsVisible = true; this.symbol.Fill.Color = color; this.Location.X = position.X; this.Location.Y = position.Y; }
private void bttnOk_Click(object sender, EventArgs e) { int ind = comboBoxName.SelectedIndex; ZedGraph.LineItem curve = (ZedGraph.LineItem)_curves[ind]; curve.Label.Text = textBox1.Text; curve.Color = pnlColor.BackColor; ZedGraph.SymbolType SmType = (ZedGraph.SymbolType)Enum.Parse(typeof(ZedGraph.SymbolType), ComBoxSymType.Items[ComBoxSymType.SelectedIndex].ToString()); curve.Symbol = new ZedGraph.Symbol(SmType, pnlColor.BackColor); DashStyle Dash = (DashStyle)Enum.Parse(typeof(DashStyle), ComBoxLine.Items[ComBoxLine.SelectedIndex].ToString()); curve.Line.Style = Dash; bttnOk.Enabled = false; EventChangedCurve(); LoadList(ind); }
private SampleType(string name, Func <string> getLabelFunc, Color color, SymbolType symbolType) : base(name, getLabelFunc) { Color = color; SymbolType = symbolType; }