コード例 #1
0
        //Init framework class and subscirbe to Event to refresh the view
        public Form1()
        {
            InitializeComponent();
            calcFramework            = new CalculatorFramework();
            calcFramework.RefreshUI += RefreshView;

            RefreshView(null, null);
        }
コード例 #2
0
        public ExeState(CalculatorFramework framework)
        {
            Framework              = framework;
            ExecutedResult         = "";
            Framework.CurrentInput = "";

            TryParseExpression();
        }
コード例 #3
0
 public RecallState(CalculatorFramework framework)
 {
     Framework              = framework;
     LoadedNumber           = "";
     Framework.CurrentInput = "Enter reg to load from: ";
 }
コード例 #4
0
 public StorageState(CalculatorFramework framework)
 {
     Framework = framework;
     ToBeSaved = Framework.CurrentInput;
     Framework.CurrentInput = "Enter reg to save " + ToBeSaved;
 }
コード例 #5
0
 public ProgState(CalculatorFramework framework)
 {
     Framework = framework;
     Framework.CurrentInput = "";
 }
コード例 #6
0
 public CalculationState(CalculatorFramework framework)
 {
     Framework = framework;
 }