示例#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();
        }
示例#2
0
        private void hide_not_lights()
        {
            ExteriorOption1.Hide();
            ExteriorOption2.Hide();
            ExteriorOption3.Hide();
            ExteriorOption4.Hide();

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

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

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

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

            setZero();
        }