Example #1
0
        private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormCustomer f = new FormCustomer();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Example #2
0
 private void btnSearchCustomer_Click(object sender, EventArgs e)
 {
     this.Hide();
     using (FormCustomer f = new FormCustomer(FormCustomer.mode.select))
     {
         f.ShowDialog();
         txtCustumerFullName.Text = f.ReturnCustumerName;
         this.idCustumerSelected  = f.ReturnCustumerID;
         Console.WriteLine(this.idCustumerSelected);
     }
     this.Show();
 }