Exemple #1
0
        private void btnAdmin_Click(object sender, EventArgs e)
        {
            Loguin busqueda = new Loguin();

            //busqueda.MdiParent = this;
            busqueda.Show();
        }
Exemple #2
0
        private void btnAdmin_Click(object sender, EventArgs e)
        {
            Loguin log = new Loguin();

            log.Show();
            this.Hide();
        }
Exemple #3
0
        private void btnSair_Click(object sender, EventArgs e)
        {
            this.Hide();
            Loguin loguin = new Loguin();

            loguin.Closed += (s, args) => this.Close();
            loguin.Show();
        }
Exemple #4
0
        private void btnCal3_Click(object sender, EventArgs e)
        {
            Loguin    logui3 = new Loguin();
            clsLoguin cls3   = new clsLoguin();

            logui3.Lab3 = Convert.ToDouble(value: txtLab3.Text);
            logui3.Par3 = Convert.ToDouble(value: txtPar3.Text);
            Double Final3 = cls3.cal3(logui3);

            txtR3.Text = Final3.ToString();
        }
Exemple #5
0
        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();
        }
Exemple #6
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmUsuario frm    = new frmUsuario();
            Loguin     logui1 = new Loguin();
            clsLoguin  cls1   = new clsLoguin();

            logui1.Lab1 = Convert.ToDouble(value: txtLab1.Text);
            logui1.Par1 = Convert.ToDouble(value: txtPar1.Text);
            Double Final1 = cls1.cal1(logui1);

            txtR.Text = Final1.ToString();
            frm.Show();
        }
Exemple #7
0
        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");
            }
        }
        private void administrarBeneficiariosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Loguin frmL = new Loguin();

            frmL.Show();
        }
Exemple #9
0
        public Double cal1(Loguin log1)
        {
            Double total1 = (log1.Lab1 * 0.4) + (log1.Par1 * 0.6);

            return(total1);
        }
Exemple #10
0
        public Boolean apro(Loguin logA)
        {
            Double result = (logA.Nota1 + logA.Nota2 + logA.Nota3) / 3;

            return(result > 6.0);
        }
Exemple #11
0
        public Double calF(Loguin logF)
        {
            Double totalF = (logF.Nota1 + logF.Nota2 + logF.Nota3) / 3;

            return(totalF);
        }
Exemple #12
0
        public Double cal3(Loguin log3)
        {
            Double total3 = (log3.Lab3 * 0.4) + (log3.Par3 * 0.6);

            return(total3);
        }
Exemple #13
0
        public Double cal2(Loguin log2)
        {
            Double total2 = (log2.Lab2 * 0.4) + (log2.Par2 * 0.6);

            return(total2);
        }
Exemple #14
0
        public App()
        {
            InitializeComponent();

            MainPage = new Loguin();
        }