public void Open(RegressionControl rc) { //AddColumnNames(); //AddYears(); //SetSize(); //this.checkedListBox1.Visible = true; //this.btnRun.Visible = true; for (int i = 0; i < rc.Controls.Count; i++) { this.Controls.Add(rc.Controls[i]); } }
public EnergyCostControl(RegressionControl parentControl) { InitializeComponent(); this.parentControl = parentControl; if (Globals.ThisAddIn.fromWizard) { this.label1.Text = "Step 6: Energy Cost Data"; } else { this.label1.Text = "Energy Cost Data"; } }
public void LaunchCO2EmissionControl(CheckedListBox clb, RegressionControl parentControl, System.Windows.Forms.Control.ControlCollection controls) { if (Globals.ThisAddIn.wizardPane.Visible) { Globals.ThisAddIn.hideWizard(); } CO2EmissionControl newControl = new CO2EmissionControl(parentControl); Globals.ThisAddIn.CustomTaskPanes.Remove(Globals.ThisAddIn.wizardPane); Globals.ThisAddIn.wizardPane = Globals.ThisAddIn.CustomTaskPanes.Add(newControl, "CO2 Avoided Emission Data"); newControl.Open(clb, controls); if (!Globals.ThisAddIn.wizardPane.Visible) { Globals.ThisAddIn.showWizard(); } }
public void LaunchRegressionControl(Constants.EnPITypes type) { if (Globals.ThisAddIn.wizardPane.Visible) { Globals.ThisAddIn.hideWizard(); } RegressionControl newControl = new RegressionControl(type); Globals.ThisAddIn.CustomTaskPanes.Remove(Globals.ThisAddIn.wizardPane); Globals.ThisAddIn.wizardPane = Globals.ThisAddIn.CustomTaskPanes.Add(newControl, "Select Energy Sources"); newControl.Open(); if (!Globals.ThisAddIn.wizardPane.Visible) { Globals.ThisAddIn.showWizard(); } }
//bool isEnergyCostChecked; #endregion #region Constructors public CO2EmissionControl(RegressionControl parentControl) { InitializeComponent(); //isEnergyCostChecked = blnIsEnergyCostChecked; this.parentControl = parentControl; if (Globals.ThisAddIn.fromWizard) { //if (isEnergyCostChecked == false) //{ // this.label1.Text = "Step 6: CO2 Avoided Emission Data"; //} //else //{ this.label1.Text = "Step 7: CO2 Avoided Emission Data"; //} } else { this.label1.Text = "CO2 Avoided Emission Data"; } }