public string SetCalculatorState(CalculatorState state) { _output = state.Output; _format = state.Format; _new = state.IsNewPending; _fix = state.IsFixPending; _memory = state.Memory; _xreg = state.XRegister; _stack.FromArray(state.Stack); return(_output); }
public void SetState(CalculatorState State) { Output = _calc.SetCalculatorState(State); OnPropertyChanged(nameof(StackSize)); _calcCommand.UpdateEnable(); }