Example #1
0
        private bool TryGetApplicationOperation(string input, out ApplicationOperationType operation)
        {
            operation = Enumeration.FromDisplayName <ApplicationOperationType>(input);
            if (operation == null)
            {
                return(false);
            }

            return(true);
        }
Example #2
0
        private void ExecApplicationOperation(ApplicationOperationType operation)
        {
            var(newNumbers, historyData) = operation.ApplicationOperation.Operate(CalculationData, HistoricalData);

            if (historyData != null)
            {
                HistoricalData.Push(historyData);
            }

            CalculationData = newNumbers;
        }