private void button4_Click(object sender, EventArgs e) { CalcServiceLibrary.MyNumbers obj = new CalcServiceLibrary.MyNumbers(); obj.Number1 = Convert.ToInt32(textBox1.Text); obj.Number2 = Convert.ToInt32(textBox2.Text); textBox3.Text = channel2.Divide(obj).ToString(); }
private void btnDivide_Click(object sender, EventArgs e) { var myNum = new CalcServiceLibrary.MyNumbers { Number1 = int.Parse(txtNumber1.Text), Number2 = int.Parse(txtNumber2.Text) }; txtResult.Text = _channel2.Divide(myNum).ToString(); }
public int Multiply(MyNumbers obj) { return(obj.Number1 * obj.Number2); }
public int Divide(MyNumbers obj) { return(obj.Number1 / obj.Number2); }
public int Multiply(MyNumbers Obj) { return(Obj.Number1 * Obj.Number2); }
public int Divide(MyNumbers Obj) { return(Obj.Number1 / Obj.Number2); }