// multiply private void multiply_Click(object sender, EventArgs e) { int a = Convert.ToInt32(x2.Text); int b = Convert.ToInt32(y2.Text); z2.Text = MyMathLib.multiplication(a, b).ToString(); }
// add private void add_Click(object sender, EventArgs e) { int a = Convert.ToInt32(x1.Text); int b = Convert.ToInt32(y1.Text); z1.Text = MyMathLib.addition(a, b).ToString(); }
public double Add(double num1, double num2) { return(MyMathLib.Add(num1, num2)); }
public override double Add(double num1, double num2) { Console.WriteLine("ProgrammerCalculator Add called."); return(MyMathLib.Add(num1, num2)); }