private void btn_picking_Click(object sender, EventArgs e) { if (login == false) { string res = MessageBox.Show("Desea Cambiar de PICKING ?", "Aviso", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2).ToString(); if (res == "Yes") { frm_supervisor f1 = new frm_supervisor(); this.Visible = false; f1.ShowDialog(); if (f1.ok == true) { frm_seleccionar_picking f = new frm_seleccionar_picking(); this.Close(); f.Show(); } else { this.Visible = true; } } } else { frm_seleccionar_picking f = new frm_seleccionar_picking(); f.login = true; this.Close(); f.Show(); } }
private void button1_Click(object sender, EventArgs e) { frm_seleccionar_picking f = new frm_seleccionar_picking(); f.login = true; this.Close(); f.Show(); }
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(); } }
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; } } }