示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            F_Admin Form = new F_Admin();

            this.Hide();

            F_IDCliente Form4 = new F_IDCliente();

            Form4.Show();
        }
示例#2
0
        private void button3_Click(object sender, EventArgs e)
        {
            F_Veri Form = new F_Veri();

            this.Hide();

            F_IDCliente Form4 = new F_IDCliente();

            Form4.Show();
        }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            F_IDCliente Form = new F_IDCliente();

            this.Hide();

            F_Veri Form4 = new F_Veri();

            Form4.Show();

            String ID = this.textBox1.Text;

            if (ID.Equals(""))
            {
                MessageBox.Show("Error al digitar");
            }
        }
示例#4
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");
                    }
                }
            }
        }