예제 #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);
     }
 }
예제 #2
0
        private void DM_KhachHang_NewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddCustomer frmCustomer = new AddCustomer();

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

            frmCustomer.ShowDialog();
        }