예제 #1
0
        //Чистка
        private void butC_Click(object sender, EventArgs e)
        {
            staticNumberFirst  = "0";
            staticNumberSecond = "0";
            IndicComma         = false;
            IndicSymbol        = false;
            symbol             = operationSymbol.ZERO;

            labelSymbol.Text = "";
            label.Text       = "0";
        }
예제 #2
0
 private void butcheckOperationSymbol(char s, operationSymbol operation)
 {
     if (IndicSymbol == true || staticNumberSecond != "")
     {
         butOperationSymbol(s);
         butSymbol(s, operation);
     }
     else
     {
         butSymbol(s, operation);
     }
 }
예제 #3
0
        private void butSymbol(char symbolX, operationSymbol s)
        {
            IndicSymbol      = true;
            symbol           = s;
            labelSymbol.Text = staticNumberFirst + " " + symbolX;

            if (label.Text.Remove(label.Text.Length - 1) == ",")
            {
                label.Text = label.Text.Remove(label.Text.Length - 1);
            }

            ////
        }