Example #1
0
        public static ICalculate OperationType(object sign)
        {
            ICalculate Operation = null;

            switch (sign)
            {
            case "+":
                Operation = new AddViewModel();
                break;

            case "-":
                Operation = new SubtractionViewModel();
                break;

            case "*":
                Operation = new MultiplicationViewodel();
                break;

            case "/":
                Operation = new DivideVieModel();
                break;

            case "^":
                Operation = new PowerViewModel();
                break;

            case "%":
                Operation = new PercentageViewModel();
                break;

            case "\\":
                Operation = new SqrtViewModel();
                break;

            case "r":
                Operation = new RemainderViewModel();
                break;

            default:
                throw new NotImplementedException("Not Implemented Yet");
            }
            return(Operation);
        }
 public int CreateOrUpdate(RemainderViewModel t)
 {
     throw new NotImplementedException();
 }