private void button1_Click(object sender, EventArgs e)
        {
            if (login == true)
            {
                frm_seleccionar_picking f = new frm_seleccionar_picking();
                this.Close();

                f.ShowDialog();
            }
            else
            {
                this.Close();
            }
        }
示例#2
0
 private void btn_aceptar_Click(object sender, EventArgs e)
 {
     if (txt_usuario.Text != "" && txt_password.Text != "")
     {
         Cursor.Current = Cursors.WaitCursor;
         if (validar_usuario(txt_usuario.Text.Trim().ToUpper(), txt_password.Text.Trim()))
         {
             //asignamos la variable usuario la cual debe de estar disponible en todos los formularios
             Cursor.Current = Cursors.Default;
             this.Hide();
             Global.Eliminar_Zonas_Usuario(txt_usuario.Text.Trim().ToUpper());
             frm_seleccionar_picking f = new frm_seleccionar_picking();
             f.ShowDialog();
         }
         else
         {
             MessageBox.Show("Datos de acceso no validos", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
             Cursor.Current = Cursors.Default;
         }
     }
 }