Esempio n. 1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (listKhachHang.SelectedRows.Count == 1)
     {
         int         rowSelected = listKhachHang.SelectedRows[0].Index;
         String      selectedId  = listKhachHang.Rows[rowSelected].Cells["ID"].Value.ToString();
         AddCustomer frmEdit     = new AddCustomer(selectedId);
         frmEdit.ShowDialog(this);
         search_Click(sender, e);
     }
 }
Esempio n. 2
0
        private void DM_KhachHang_NewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddCustomer frmCustomer = new AddCustomer();

            frmCustomer.ShowDialog(this);
        }
Esempio n. 3
0
        private void lblThemMoi_Click(object sender, EventArgs e)
        {
            AddCustomer frmCustomer = new AddCustomer();

            frmCustomer.ShowDialog();
        }