private void saveNumber() { if (number != string.Empty) { calc.AddNumber(Convert.ToDouble(number)); number = string.Empty; } }