Esempio n. 1
0
 private void dequeueAndExecute()
 {
     CurrentOperation          = mQueue.Dequeue();
     CurrentOperation.Succeed += onOperationCompleted;
     CurrentOperation.Failed  += onOperationCompleted;
     CurrentOperation.Execute();
 }
Esempio n. 2
0
        public void Execute()
        {
            if (CurrentOperation.Operator == null || CurrentOperation.RhsNumber == null || CurrentOperation.LhsNumber == null)
            {
                return;
            }

            executedValue.SetValue(CurrentOperation.Execute());
            Display = executedValue.ToDisplayString();
            operations.Add(CurrentOperation);
        }