//Init framework class and subscirbe to Event to refresh the view public Form1() { InitializeComponent(); calcFramework = new CalculatorFramework(); calcFramework.RefreshUI += RefreshView; RefreshView(null, null); }
public ExeState(CalculatorFramework framework) { Framework = framework; ExecutedResult = ""; Framework.CurrentInput = ""; TryParseExpression(); }
public RecallState(CalculatorFramework framework) { Framework = framework; LoadedNumber = ""; Framework.CurrentInput = "Enter reg to load from: "; }
public StorageState(CalculatorFramework framework) { Framework = framework; ToBeSaved = Framework.CurrentInput; Framework.CurrentInput = "Enter reg to save " + ToBeSaved; }
public ProgState(CalculatorFramework framework) { Framework = framework; Framework.CurrentInput = ""; }
public CalculationState(CalculatorFramework framework) { Framework = framework; }