private void volverAlMenuPrincipalToolStripMenuItem_Click(object sender, EventArgs e) { fMenu M = new fMenu(); M.Show(); Hide(); }
private void btnVolver_Click(object sender, EventArgs e) { fMenu m = new fMenu(); m.Show(); Hide(); }
private void Fprint_Load(object sender, EventArgs e) { fMenu xf = new fMenu(); this.Left = xf.Left + 167; this.Top = xf.Top + 75; this.Width = Screen.PrimaryScreen.Bounds.Width - xf.panel1.Width - 160; this.Height = Screen.PrimaryScreen.Bounds.Height - xf.Top - 170; reportDocument1.FileName = Program.lAppPath + "\\pr.rpt"; tbl = reportDocument1.Database.Tables["Tmp"]; list = reportDocument1; sql = " select * from Tmp "; tb = Program.ExecSelect(sql); if (tb.Rows.Count == 0) { MessageBox.Show("没有符合该条件的记录!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); crystalReportViewer1.Visible = false; } else { tbl.SetDataSource(tb); list.Refresh(); crystalReportViewer1.Visible = true; } errinf = Program.SqlCmd("delete from Tmp"); }
private void btnRegresar_Click(object sender, EventArgs e) { fMenu M = new fMenu(); M.Show(); Hide(); }
private void button1_Click(object sender, EventArgs e) { string userName = txbUsername.Text; string passWord = txbPassword.Text; if (Login(userName, passWord)) { Account Login = AccountData.Instance.GetAccount(userName); fMenu f = new fMenu(Login); this.Hide(); f.ShowDialog(); } else { MessageBox.Show("Sorry, we can't find an account."); } }
private void button1_Click(object sender, EventArgs e) { using (notasEstudiantesEntities db = new notasEstudiantesEntities()) { var lista = from usuarios in db.estudiante where usuarios.usuario == txtUsuario.Text && usuarios.contraseña == txtContraseña.Text select usuarios; if (lista.Count() > 0) { fMenu menu = new fMenu(); menu.Show(); } else { MessageBox.Show("El usuario no existe"); } } }
private void btnEntrar_Click(object sender, EventArgs e) { using (GetHospiEntities4 db = new GetHospiEntities4()) { var lista = from usuario in db.Usuarios where usuario.Usuario == txtUsuario.Text && usuario.Clave == txtClave.Text select usuario; if (lista.Count() > 0) { fMenu menu = new fMenu(); menu.Show(); this.Hide(); } else { MessageBox.Show(" ¡El Usuario y/o clave no son corecctos! " + " ¡Intente de nuevo! "); txtUsuario.Clear(); txtClave.Clear(); txtUsuario.Focus(); } } }
private void simpleButton1_Click(object sender, EventArgs e) { var menu = new fMenu(); menu.ShowDialog(); }