private void btnCanTong_Click(object sender, EventArgs e) { Utilities.KLCan = blKLCan.Text; Utilities.LoaiCan = "CanTong"; _frmPhieuCan = new frmPhieuCan(this); _frmPhieuCan.ShowDialog(); }
private void btnTaoMoi_Click(object sender, EventArgs e) { Utilities.KLCan = blKLCan.Text; _frmPhieuCan = new frmPhieuCan(this); // reset BSX Utilities.BienSoXe = null; new Thread(new ThreadStart(LayBienSoXe)).Start(); _frmPhieuCan.ShowDialog(); }
private void dGVPhieuCan_CellClick(object sender, DataGridViewCellEventArgs e) { try { int numrow; numrow = e.RowIndex; Utilities.PhieuCan = _PhieuCanCtrl.LayPhieuCan2(dGVPhieuCan.Rows[numrow].Cells[0].Value.ToString()); Utilities.KLCan = blKLCan.Text; frmPhieuCan frmPhieuCan = new frmPhieuCan(this); frmPhieuCan.ShowDialog(); } catch { Utilities.frmMain.lbThongBao.Text = "Lỗi"; } }
private void btnTimPhieu_Click(object sender, EventArgs e) { Utilities.KLCan = blKLCan.Text; _frmPhieuCan = new frmPhieuCan(this); _frmPhieuCan.ShowDialog(); }