Esempio n. 1
0
        private void dvwDSCuocHen_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int         vt      = dvwDSCuocHen.CurrentCell.RowIndex;
            int         maphieu = Convert.ToInt32(dvwDSCuocHen.Rows[vt].Cells["Mã phiếu"].Value.ToString());
            int         makh    = Convert.ToInt32(dvwDSCuocHen.Rows[vt].Cells["idKH"].Value.ToString());
            CT_PhieuHen frm     = new CT_PhieuHen(maphieu, makh);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                loaddatagridview_dsphieuhen(dvwDSCuocHen, wcf_phieu.getPhieuhen_TrongNgay().ToList());
            }
        }
Esempio n. 2
0
 private void btnThemLichHen_Click(object sender, EventArgs e)
 {
     try
     {
         CT_PhieuHen frm = new CT_PhieuHen(this);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             loaddatagridview_dsphieuhen(dvwDSCuocHen, wcf_phieu.getPhieuhen_TrongNgay().ToList());
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Lỗi" + ex.Message);
     }
 }