예제 #1
0
        private void nhapThongTinKhachHangToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NhapthongtinKH frmCreateNewCus = new NhapthongtinKH();

            frmCreateNewCus.init(dbFileName);
            frmCreateNewCus.ShowDialog();
        }
예제 #2
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            NhapthongtinKH frmCreateNewCus = new NhapthongtinKH();

            frmCreateNewCus.init(dbname);
            frmCreateNewCus.ShowDialog();
        }
예제 #3
0
        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();
        }
예제 #4
0
 private void nhapThongTinKhachHangToolStripMenuItem_Click(object sender, EventArgs e)
 {
     NhapthongtinKH frmCreateNewCus = new NhapthongtinKH();
     frmCreateNewCus.init(dbFileName);
     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 cmdAdd_Click(object sender, EventArgs e)
 {
     NhapthongtinKH frmCreateNewCus = new NhapthongtinKH();
     frmCreateNewCus.init(dbname);
     frmCreateNewCus.ShowDialog();
 }