コード例 #1
0
 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]);
     }
 }
コード例 #2
0
ファイル: EnergyCostControl.cs プロジェクト: koay9f/EnPI
        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";
            }
        }
コード例 #3
0
ファイル: ThisAddIn.cs プロジェクト: Tubbz-alt/EnPI
        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();
            }
        }
コード例 #4
0
ファイル: ThisAddIn.cs プロジェクト: Tubbz-alt/EnPI
        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();
            }
        }
コード例 #5
0
ファイル: CO2EmissionControl.cs プロジェクト: koay9f/EnPI
        //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";
            }
        }