Beispiel #1
0
        private void btn_ingresar_Click(object sender, EventArgs e)
        {
            frm_Main frm_main = new frm_Main();

            if (con.consultaLogin(txt_usuario.Text, txt_contra.Text) == 1)
            {
                this.Hide();
                frm_main.Show();
            }
            else
            {
                int?x = 1;
                sub_frm.modal_login modal = new sub_frm.modal_login(x);
                modal.ShowDialog();
            }
        }
Beispiel #2
0
        private void btn_ok_Click(object sender, EventArgs e)
        {
            modal_login modal = new modal_login();

            this.Close();
        }