Example #1
0
        /**
         * 1.- The DayCountertoolStripDropDown_Click method receives two parameters
         * 2.- create a variable dr of type DialogResult and displays a message to the user.
         * 3.- compares if the value of of the declared variable is ok
         * 4.- if value equals ok , it changes he backcolor
         */
        private void DayCountertoolStripDropDown_Click(object sender, EventArgs e)
        {
            DialogResult dr = BackgroundColorSelector.ShowDialog();

            if (dr == DialogResult.OK)
            {
                splitContainerCalculatorandDayCounter.Panel2.BackColor = BackgroundColorSelector.Color;
            }
        }
Example #2
0
        /**
         * 1.- The GraphSectiontoolStripDropDown_Click method receives two parameters
         * 2.- create a variable dr of type DialogResult and displays a message to the user.
         * 3.- compares if the value of of the declared variable is ok
         * 4.- if value equals ok , it changes he backcolor
         */
        private void GraphSectiontoolStripDropDown_Click(object sender, EventArgs e)
        {
            DialogResult dr = BackgroundColorSelector.ShowDialog();

            if (dr == DialogResult.OK)
            {
                splitContainerInside.Panel2.BackColor = BackgroundColorSelector.Color;
            }
        }
Example #3
0
        /**
         * 1.- The BackgroundColorSelector_Click method receives two parameters
         * 2.- create a variable dr of type DialogResult and displays a message to the user.
         * 3.- compares if the value of of the declared variable is ok
         * 4.- if value equals ok , it changes he backcolor
         */
        private void BackgroundColorSelector_Click(object sender, EventArgs e)
        {
            DialogResult dr = BackgroundColorSelector.ShowDialog();

            if (dr == DialogResult.OK)
            {
                tableLayoutPanelCalculator.BackColor = BackgroundColorSelector.Color;
            }
        }
Example #4
0
        /**
         * 1.- The StripMenuAppearanceModifyBackgroundColor_Click method receives two parameters
         * 2.- create a variable dr of type DialogResult and displays a message to the user.
         * 3.- compares if the value of of the declared variable is ok
         * 4.- if value equals ok , it changes he backcolor
         */
        private void StripMenuAppearanceModifyBackgroundColor_Click(object sender, EventArgs e)
        {
            DialogResult dr = BackgroundColorSelector.ShowDialog();

            if (dr == DialogResult.OK)
            {
                tableLayoutPanelCalculator.BackColor = BackgroundColorSelector.Color;
                splitContainerCalculatorandDayCounter.Panel2.BackColor = BackgroundColorSelector.Color;
                splitContainerCalculatorandDayCounter.Panel1.BackColor = BackgroundColorSelector.Color;
                splitContainerInside.Panel2.BackColor = BackgroundColorSelector.Color;
            }
        }