Exemple #1
0
        public Form1()
        {
            InitializeComponent();
            ApliancesDropDown.SelectedIndex = 0;
            label1.Text = "Number of Lights";
            label2.Text = "Watts";
            label3.Text = "Hours On";
            ApliancesDropDown.SelectedIndexChanged += new System.EventHandler(ApliancesDropDown_selectedIndex);

            KitchenOption1.Hide();
            KitchenOption2.Hide();
            KitchenOption3.Hide();
            KitchenOption4.Hide();
            KitchenOption5.Hide();
            KitchenOption6.Hide();
            EntretainmentOption1.Hide();
            EntretainmentOption2.Hide();
            EntretainmentOption3.Hide();
            EntretainmentOption4.Hide();
            EntretainmentOption5.Hide();
            EntretainmentOption6.Hide();
            ExteriorOption1.Hide();
            ExteriorOption2.Hide();
            ExteriorOption3.Hide();
            ExteriorOption4.Hide();
        }
Exemple #2
0
        private void hide_not_exterior()
        {
            ExteriorOption1.Show();
            ExteriorOption2.Show();
            ExteriorOption3.Show();
            ExteriorOption4.Show();

            KitchenOption1.Hide();
            KitchenOption2.Hide();
            KitchenOption3.Hide();
            KitchenOption4.Hide();
            KitchenOption5.Hide();
            KitchenOption6.Hide();

            LightsOption1.Hide();
            LightsOption2.Hide();
            LightsOption3.Hide();
            LightsOption4.Hide();
            LightsOption5.Hide();
            LightsOption6.Hide();
            LightsOption7.Hide();
            LightsOption8.Hide();

            numericUpDown5Amount.Hide();
            numericUpDown5Hours.Hide();
            numericUpDown6Amount.Hide();
            numericUpDown6Hours.Hide();
            numericUpDown7Amount.Hide();
            numericUpDown7Hours.Hide();
            numericUpDown8Amount.Hide();
            numericUpDown8Hours.Hide();

            EntretainmentOption1.Hide();
            EntretainmentOption2.Hide();
            EntretainmentOption3.Hide();
            EntretainmentOption4.Hide();
            EntretainmentOption5.Hide();
            EntretainmentOption6.Hide();

            setZero();
        }