private void btnCalcular2_Click(object sender, EventArgs e) { Somar s2; s2 = new Somar(int.Parse(txtN1.Text), int.Parse(txtN2.Text)); s2.calcular(); lblResultado.Text = s2.getResultado().ToString(); }
public frmSomar() { InitializeComponent(); s1 = new Somar(); }