コード例 #1
0
 private void btnCapNhat_Click(object sender, EventArgs e)
 {
     if (gridViewDsKh.SelectedRowsCount == 1)
     {
         KhachHangBUS     khbus = new KhachHangBUS();
         string           id    = gridViewDsKh.GetRowCellValue(gridViewDsKh.FocusedRowHandle, gridViewDsKh.Columns[0]).ToString();
         frmTextKhachHang ftph  = new frmTextKhachHang(this, id);
         ftph.ShowDialog();
     }
     else
     {
         MessageBox.Show("Chọn 1 Phòng Cần Sửa", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         return;
     }
 }
コード例 #2
0
        private void btnThemKH_Click(object sender, EventArgs e)
        {
            frmTextKhachHang frm = new frmTextKhachHang();

            frm.ShowDialog();
            txtCMND.Text = CMND;
            txtSDT.Text  = SDT;
            txtHT.Text   = TenKH;
            if (GioiTinh.Equals("Nam"))
            {
                radNam.Checked = true;
            }
            else
            {
                radNu.Checked = true;
            }
        }
コード例 #3
0
        private void btnThemKH_Click(object sender, EventArgs e)
        {
            frmTextKhachHang frm = new frmTextKhachHang(this);

            frm.ShowDialog();
        }