Ejemplo n.º 1
0
        private void nhapThongTinKhachHangToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NhapthongtinKH frmCreateNewCus = new NhapthongtinKH();

            frmCreateNewCus.init(dbFileName);
            frmCreateNewCus.ShowDialog();
        }
Ejemplo n.º 2
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            NhapthongtinKH frmCreateNewCus = new NhapthongtinKH();

            frmCreateNewCus.init(dbname);
            frmCreateNewCus.ShowDialog();
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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();
 }