Exemplo n.º 1
0
        private void volverAlMenuPrincipalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fMenu M = new fMenu();

            M.Show();
            Hide();
        }
Exemplo n.º 2
0
        private void btnVolver_Click(object sender, EventArgs e)
        {
            fMenu m = new fMenu();

            m.Show();
            Hide();
        }
Exemplo n.º 3
0
 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");
 }
Exemplo n.º 4
0
        private void btnRegresar_Click(object sender, EventArgs e)
        {
            fMenu M = new fMenu();

            M.Show();
            Hide();
        }
Exemplo n.º 5
0
        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.");
            }
        }
Exemplo n.º 6
0
        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");
                }
            }
        }
Exemplo n.º 7
0
        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();
                }
            }
        }
Exemplo n.º 8
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            var menu = new fMenu();

            menu.ShowDialog();
        }