internal void AddNum(double value1, double value2)
        {
            var result = value1 + value2;

            //MathPerformed(this,new MathPerformedEventArgs(result));
            MathPerformed?.Invoke(this, new MathPerformedEventArgs(result));
        }
Ejemplo n.º 2
0
        public void MultiplyNumbers(double value1, double value2)
        {
            MathPerformed?.Invoke(this, new MathPerformedEventArgs()
            {
                Result = value1 * value2
            });

            //if (MathPerformed != null)
            //MathPerformed(this, new MathPerformedEventArgs() { Result = value1 * value2 });
        }
        internal void MultiplyNum(double value1, double value2)
        {
            var result = value1 * value2;

            MathPerformed?.Invoke(this, new MathPerformedEventArgs(result));
        }
Ejemplo n.º 4
0
        //with the method below implementation details can be assigned later to the delegate
        internal void CalculateNumbers(double value1, double value2, CalculationHandler calc)
        {
            Timer timer = new Timer(5000);

            MathPerformed?.Invoke(calc(value1, value2));
        }