/// <summary> /// Initializes a new instance of the <see cref="NuGenVisiPlot2D"/> class. /// </summary> public NuGenVisiPlot2D() { this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.Selectable, true); this.SetStyle(ControlStyles.UserPaint, true); _formulas = new NuGenFormulaCollection(this); _timer.Interval = 50; _timer.Tick += new EventHandler(_timer_Tick); this.Reload(); _sf = new StringFormat(StringFormatFlags.DirectionVertical | StringFormatFlags.NoClip); _sf.LineAlignment = StringAlignment.Center; _sf.Alignment = StringAlignment.Center; }
/// <summary> /// Initializes a new instance of the <see cref="NuGenVisiPlot2D"/> class. /// </summary> public NuGenVisiPlot2D() { this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); this.SetStyle(ControlStyles.Selectable, true); this.SetStyle(ControlStyles.UserPaint, true); _formulas = new NuGenFormulaCollection(this); _timer.Interval = 50; _timer.Tick += new EventHandler(_timer_Tick); this.Reload(); _sf = new StringFormat(StringFormatFlags.DirectionVertical | StringFormatFlags.NoClip); _sf.LineAlignment = StringAlignment.Center; _sf.Alignment = StringAlignment.Center; }