Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Customer_Form cf = new Customer_Form();

            cf.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            conn.oleDbConnection1.Open();
            OleDbCommand cmd = new OleDbCommand("Update customer set cstatus='DisApprove' where cid ='" + comboBox3.Text + "'", conn.oleDbConnection1);

            cmd.ExecuteNonQuery();
            MessageBox.Show("Customer Has not been Approved");
            MessageBox.Show("Deal With Another Customer");
            conn.oleDbConnection1.Close();

            /* Cutomer_DisApprove cd = new Cutomer_DisApprove();
             * cd.Show();
             * this.Hide();*/

            Customer_Form cf = new Customer_Form();

            cf.Show();
            this.Hide();
        }