Beispiel #1
0
        private void Tbx_CR7_TextChanged(object sender, EventArgs e)
        {
            if (Tbx_CR7.Text != "")
            {
                Btn_Calcular.Enabled = true;

                double CR7 = Convert.ToDouble(Tbx_CR7.Text);

                if (CR7 > 4)
                {
                    MessageBox.Show("Favor Introducir valores del 1-4");
                    Tbx_CR7.Clear();
                }
                else
                {
                    if (Tbx_CR7.Text.Length == 1 && Tbx_CR7.Text != "0")
                    {
                        Tbx_Nota7.Focus();
                    }
                }
            }
            else
            {
                Tbx_CR7.Focus();
                Tbx_CR7.Text = "0";
                Tbx_CR7.SelectAll();
            }
        }
Beispiel #2
0
        private void Tbx_Nota6_TextChanged(object sender, EventArgs e)
        {
            if (Tbx_Nota6.Text != "")
            {
                Btn_Calcular.Enabled = true;

                double Nota6 = Convert.ToDouble(Tbx_Nota6.Text);

                if (Nota6 > 100)
                {
                    MessageBox.Show("Favor Introducir valores del 0-100");
                    Tbx_Nota6.Clear();
                }
                else
                {
                    if (Tbx_Nota6.Text.Length == 4 || Tbx_Nota6.Text == "100")
                    {
                        Tbx_CR7.Focus();
                    }
                }
            }
            else
            {
                Tbx_Nota6.Focus();
                Tbx_Nota6.Text = "0";
                Tbx_Nota6.SelectAll();
            }
        }
Beispiel #3
0
        private void Limpiar_Formulario()
        {
            Tbx_Nombre.Clear();
            Tbx_Apellido.Clear();

            Tbx_CR1.Clear();
            Tbx_CR2.Clear();
            Tbx_CR3.Clear();
            Tbx_CR4.Clear();
            Tbx_CR5.Clear();
            Tbx_CR6.Clear();
            Tbx_CR7.Clear();
            Tbx_CR_Total.Clear();

            Tbx_Nota1.Clear();
            Tbx_Nota2.Clear();
            Tbx_Nota3.Clear();
            Tbx_Nota4.Clear();
            Tbx_Nota5.Clear();
            Tbx_Nota6.Clear();
            Tbx_Nota7.Clear();

            Tbx_CR_Nota1.Clear();
            Tbx_CR_Nota2.Clear();
            Tbx_CR_Nota3.Clear();
            Tbx_CR_Nota4.Clear();
            Tbx_CR_Nota5.Clear();
            Tbx_CR_Nota6.Clear();
            Tbx_CR_Nota7.Clear();
            Tbx_CR_Nota_Total.Clear();

            Tbx_Base100.Clear();
            Tbx_Base4.Clear();

            Tbx_Matricula.Focus();
            Tbx_Matricula.SelectAll();
        }