private void btnMC_Click(object sender, EventArgs e) { Calc.MemoryClear(); btnM.Text = ""; displayString = ""; txtDisplay.Text = displayValue.ToString(); newValue = true; decimalEntered = false; }
// Clears memory private void btnMC_Click(object sender, EventArgs e) { if (!newNumber) { MemoryCalculator memCalc = new MemoryCalculator(); memCalc.MemoryClear(); newNumber = true; isDecimal = false; } }