예제 #1
0
 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);
 }
예제 #2
0
 public void SetState(CalculatorState State)
 {
     Output = _calc.SetCalculatorState(State);
     OnPropertyChanged(nameof(StackSize));
     _calcCommand.UpdateEnable();
 }