public void btn_Calculate_Click(object sender, EventArgs e) { DataProcessing.Class1 class1 = new DataProcessing.Class1(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text)); calcList.Add(class1); bs.ResetBindings(false); }
private void btn_Subtraction_Click(object sender, EventArgs e) { { DataProcessing.Class1 class1 = new DataProcessing.Class1(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text)); calcList.Add(class1); class1.Subtraction(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text)); bs.ResetBindings(false); } }
public void btn_Calculate_Click(object sender, EventArgs e) { DataProcessing.Class1 class1 = new DataProcessing.Class1(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text)); MessageBox.Show(class1.CalcResult); }