コード例 #1
0
        //----------------------------------------------------------------------------
        //-------------------------Start of simple calculator-------------------------
        //----------------------------------------------------------------------------

        // adds current number button to display
        private void buttonNum_Click(object sender, EventArgs e)
        {
            Button currentButton = (Button)sender;

            functions.AddDigit(currentButton.Text);
            display.Text = functions.entry;
            buttonEquals.Focus();
        }