private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e) { FormCustomer f = new FormCustomer(); this.Hide(); f.ShowDialog(); this.Show(); }
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(); }