Пример #1
0
 private SampleType(string name, Func<string> getLabelFunc, Color color, SymbolType symbolType)
 {
     Name = name;
     _getLabelFunc = getLabelFunc;
     Color = color;
     SymbolType = symbolType;
 }
Пример #2
0
 private SampleType(string name, Func <string> getLabelFunc, Color color, SymbolType symbolType)
 {
     Name          = name;
     _getLabelFunc = getLabelFunc;
     Color         = color;
     SymbolType    = symbolType;
 }
Пример #3
0
 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;
 }
Пример #4
0
 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;
 }
Пример #5
0
        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);
        }
Пример #6
0
 private SampleType(string name, Func <string> getLabelFunc, Color color, SymbolType symbolType) : base(name, getLabelFunc)
 {
     Color      = color;
     SymbolType = symbolType;
 }