public StandardCalculatorControl(MemoryClass memoryclass) { InitializeComponent(); memoryClass = memoryclass; buttonM.Enabled = false; buttonMplus.Enabled = false; buttonMC.Enabled = false; buttonMminus.Enabled = false; }
public ScienceCalculatorControl(MemoryClass memoryclass) { InitializeComponent(); memoryClass = memoryclass; // disable memory buttons till memory is added buttonM.Enabled = false; buttonMplus.Enabled = false; buttonMC.Enabled = false; buttonMminus.Enabled = false; }