Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            F_Mante Form = new F_Mante();

            this.Hide();

            F_Admin Form4 = new F_Admin();

            Form4.Show();
        }
Esempio n. 2
0
        private void BtnAcUs_Click(object sender, EventArgs e)
        {
            /*SqlConnection conexion = new SqlConnection("Data Source=localhost\\SQLExpress;Integrated Security=True;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False ; database=facturacion ; integrated security = true");
             * conexion.Open();*/

            String caja    = this.TBXCUS.Text;
            String usuario = this.textBox1.Text;


            if (caja.Equals("123") && usuario.Equals("12"))
            {
                F_login Form = new F_login();
                this.Hide();

                F_Admin Form12 = new F_Admin();
                Form12.Show();
            }
            else
            {
                if (caja.Equals("124") && usuario.Equals("123"))
                {
                    F_login Form = new F_login();
                    this.Hide();

                    F_IDCliente Form4 = new F_IDCliente();
                    Form4.Show();
                }
                else
                {
                    if (caja.Equals("") || usuario.Equals(""))
                    {
                        MessageBox.Show("Error al digitar");
                    }
                }
            }
        }