Exemplo n.º 1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            int    hora       = Convert.ToInt32(DateTime.Now.Hour);//En la variable se almacena la hora actual.
            string Fish       = "FishKen";
            string Contrasena = hora + Fish;

            if (txtPass.Text != "")
            {
                if (txtPass.Text == Contrasena)
                {
                    Frames.FrmConfigParametros formtConfigParametros = new Frames.FrmConfigParametros();
                    formtConfigParametros.Show();
                    this.Close();
                }

                else
                {
                    lblAdvertenciaPass.Text = "Contrasena incorrecta";
                }
            }

            else
            {
                lblAdvertenciaPass.Text = "Ingrese contrasena";
            }
        }
Exemplo n.º 2
0
 private void pictureBox7_Click(object sender, EventArgs e)
 {
     Frames.FrmConfigParametros formConfig = new Frames.FrmConfigParametros();
     formConfig.Show();
     this.Close();
 }