private void nhapThongTinKhachHangToolStripMenuItem_Click(object sender, EventArgs e) { NhapthongtinKH frmCreateNewCus = new NhapthongtinKH(); frmCreateNewCus.init(dbFileName); frmCreateNewCus.ShowDialog(); }
private void cmdAdd_Click(object sender, EventArgs e) { NhapthongtinKH frmCreateNewCus = new NhapthongtinKH(); frmCreateNewCus.init(dbname); frmCreateNewCus.ShowDialog(); }
private void dtGridKH_CellContentClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow dtGridRow; DataGridViewCell dtGridCel; NhapthongtinKH frmEditUser = new NhapthongtinKH(); string makh; dtGridCel = dtGridKH.SelectedCells[0]; if (dtGridCel.Value.ToString() != "...") { return; } dtGridRow = dtGridKH.Rows[e.RowIndex]; makh = dtGridRow.Cells["MaKH"].Value.ToString(); frmEditUser.init(dbname, makh); frmEditUser.ShowDialog(); }
private void dtGridKH_CellContentClick(object sender, DataGridViewCellEventArgs e) { DataGridViewRow dtGridRow; DataGridViewCell dtGridCel; NhapthongtinKH frmEditUser = new NhapthongtinKH(); string makh; dtGridCel = dtGridKH.SelectedCells[0]; if (dtGridCel.Value.ToString() != "...") return; dtGridRow = dtGridKH.Rows[e.RowIndex]; makh = dtGridRow.Cells["MaKH"].Value.ToString(); frmEditUser.init(dbname, makh); frmEditUser.ShowDialog(); }