private void dequeueAndExecute() { CurrentOperation = mQueue.Dequeue(); CurrentOperation.Succeed += onOperationCompleted; CurrentOperation.Failed += onOperationCompleted; CurrentOperation.Execute(); }
public void Execute() { if (CurrentOperation.Operator == null || CurrentOperation.RhsNumber == null || CurrentOperation.LhsNumber == null) { return; } executedValue.SetValue(CurrentOperation.Execute()); Display = executedValue.ToDisplayString(); operations.Add(CurrentOperation); }