/// <summary>
        /// This is the event handler for the HeightLabel click event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ActiveLabel_Click(object sender, EventArgs e)
        {
            ActiveLabel           = sender as TextBox;
            ActiveLabel.BackColor = Color.LightBlue;


            NumberButtonTableLayoutPanel.Location = new Point(12, ActiveLabel.Location.Y + 55);
            NumberButtonTableLayoutPanel.BringToFront();

            if (ActiveLabel.Text != "0")
            {
                outputString = ActiveLabel.Text;
            }


            NumberButtonTableLayoutPanel.Visible = true;
        }
예제 #2
0
        /// <summary>
        /// This is the event handler for the ActiveTextBox click event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ActiveTextBox_Click(object sender, EventArgs e)
        {
            ActiveTextBox           = sender as TextBox;
            ActiveTextBox.BackColor = Color.LightBlue;

            NumberButtonTableLayoutPanel.Visible = true;

            if (ActiveTextBox.Text != "0")
            {
                ResultLabel.Text = ActiveTextBox.Text;
                outputString     = ActiveTextBox.Text;
            }

            NumberButtonTableLayoutPanel.BringToFront();

            AnimationTimer.Enabled = true;
            animationState         = AnimationState.UP;
        }
예제 #3
0
        /// <summary>
        /// This is the event handler for the ActiveLabel click event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ActiveLabel_Click(object sender, EventArgs e)
        {
            if (ActiveLabel != null)
            {
                clearNumericKeyboard();
            }

            ActiveLabel           = sender as TextBox;
            ActiveLabel.BackColor = Color.LightBlue;

            NumberButtonTableLayoutPanel.BringToFront();

            if (ActiveLabel.Text != "0")
            {
                outputString     = ActiveLabel.Text;
                ResultLabel.Text = ActiveLabel.Text;
            }


            NumberButtonTableLayoutPanel.Visible = true;
        }
예제 #4
0
        /// <summary>
        /// This is the event handler for the HeightLabel click event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ActiveLabel_Click(object sender, EventArgs e)
        {
            if (ActiveLabel != null)
            {
                clearNumericKeyboard();
            }

            ActiveLabel           = sender as Label;
            ActiveLabel.BackColor = Color.LightBlue;

            AnimationTimer.Enabled = true;
            //NumberButtonTableLayoutPanel.Location = new Point(12, ActiveLabel.Location.Y + 55);
            NumberButtonTableLayoutPanel.BringToFront();

            if (ActiveLabel.Text != "0")          //if the label already has the value, when the user click again, it should display the same value on the keyboard
            {
                outputString     = ActiveLabel.Text;
                ResultLabel.Text = ActiveLabel.Text;
            }

            NumberButtonTableLayoutPanel.Visible = true;
        }
        /// <summary>
        /// This is the event handler for the HeightLabel click event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ActiveLabel_Click(object sender, EventArgs e)
        {
            if (ActiveLabel != null)
            {
                clearNumericKeyboard();
            }


            ActiveLabel           = sender as Label;
            ActiveLabel.BackColor = Color.LightBlue;

            AnimationTimer.Enabled = true;

            //NumberButtonTableLayoutPanel.Location = new Point(12,ActiveLabel.Location.Y + 55);
            NumberButtonTableLayoutPanel.BringToFront();

            if (ActiveLabel.Text != "0")
            {
                outputString     = ActiveLabel.Text;
                ResultLabel.Text = ActiveLabel.Text;
            }
            NumberButtonTableLayoutPanel.Visible = true;
        }