예제 #1
0
        private void btnthem_Click(object sender, EventArgs e)
        {
            Frm_KhachHangThem _frmKhachHang = new Frm_KhachHangThem();

            _frmKhachHang.them = true;
            _frmKhachHang.ShowDialog();
            HienThiDanhSachKhachHang();
        }
예제 #2
0
 private void btnsua_Click(object sender, EventArgs e)
 {
     {
         if (_khachHang != null)
         {
             Frm_KhachHangThem _frmKhachHang = new Frm_KhachHangThem();
             _frmKhachHang._khachHang = _khachHang;
             _frmKhachHang.them       = false;
             _frmKhachHang.ShowDialog();
             HienThiDanhSachKhachHang();
         }
         else
         {
             MessageBox.Show("Chưa chọn khách hàng muốn sửa", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }