Ejemplo n.º 1
0
        private void bCustomerInfo_Click(object sender, EventArgs e)
        {
            fCustomerInfo f = new fCustomerInfo();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Ejemplo n.º 2
0
        private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fCustomerInfo f;

            if (CustomerDAO.Instance.CheckExistCustomerInDatabaseBySDT(this.tbCustomerSDT.Text))
            {
                f = new fCustomerInfo(this.tbCustomerSDT.Text);
            }
            else
            {
                f = new fCustomerInfo();
            }
            this.Hide();
            f.ShowDialog();
            this.Show();
        }