public void ShouldShowHistSeriesView() { var cc = Carbon.GetInstance().GetCarbonClientInstance(); var tscontrol = new TSCombineControl(); tscontrol.Create(cc, addGobutton_: true, doAutoSize_: false, showAddRemoveSeriesButtons_: false); var tsform = tscontrol.DisplayInShowForm("Time Series"); Application.Run(tsform); }
private void addCombineControl() { var c = new TSCombineControl(); c.Create(m_cc, addGobutton_: true, doAutoSize_: true, showAddRemoveSeriesButtons_: true); subscribe(c, true); flowLayoutPanel1.Controls.Add(c); m_controls.Add(c); configureControls(); }
private void subscribeToLine(TSCombineControl ts_, bool do_=true) { ts_.MinusClicked -= handleMinusClicked; ts_.PlusClicked -= handlePlusClicked; if (!do_) return; ts_.MinusClicked += handleMinusClicked; ts_.PlusClicked += handlePlusClicked; }
private void addInSeries() { flowLayoutPanel1.BackColor = Color.Purple; var c = new TSCombineControl();// {Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top}; //c.Size = new Size(flowLayoutPanel1.Width-10, c.Height); c.Create(m_cc, showAddRemoveSeriesButtons_: true, addGobutton_:false); flowLayoutPanel1.Controls.Add(c); m_provider.Add(c); subscribeToLine(c); sortOutButtons(); }
private void subscribe(TSCombineControl ts_, bool do_=true) { if (ts_ == null) return; ts_.GoClicked -= handleGoClicked; ts_.PlusClicked -= handlePlusClicked; ts_.MinusClicked -= handleMinusClicked; if (!do_) return; ts_.GoClicked += handleGoClicked; ts_.PlusClicked += handlePlusClicked; ts_.MinusClicked += handleMinusClicked; }