private void btnCal2_Click(object sender, EventArgs e) { Loguin logui2 = new Loguin(); clsLoguin cls2 = new clsLoguin(); logui2.Lab2 = Convert.ToDouble(value: txtLab2.Text); logui2.Par2 = Convert.ToDouble(value: txtPar2.Text); Double Final2 = cls2.cal2(logui2); txtR2.Text = Final2.ToString(); }
private void button4_Click(object sender, EventArgs e) { Loguin loguiF = new Loguin(); clsLoguin clsF = new clsLoguin(); loguiF.Nota1 = Convert.ToDouble(value: txtR.Text); loguiF.Nota2 = Convert.ToDouble(value: txtR2.Text); loguiF.Nota3 = Convert.ToDouble(value: txtR3.Text); Double FinalF = clsF.cal2(loguiF); txtF.Text = FinalF.ToString(); Boolean D = clsF.apro(loguiF); if (D == true) { MessageBox.Show("FELICIDADES USTED APROBO"); } else { MessageBox.Show("LO SIENTO USTED REPROBO"); } }