private void btnThem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (frm2 == null || frm2.IsDisposed) { frm2 = new frmThemPhieuThu(); } frm2.Show(); PassIDform1 sendIDObjectfrm1 = new PassIDform1(frm2.funObjectB); sendIDObjectfrm1(this); }
private void btnSua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Data._strmaphieu = lblMaPhieu.Text; Data._edit = true; if (frm2 == null || frm2.IsDisposed) { frm2 = new frmThemPhieuThu(); } frm2.Show(); PassIDform1 sendIDObjectfrm1 = new PassIDform1(frm2.funObjectB); sendIDObjectfrm1(this); }
public void funObjectB(frmThemPhieuThu frm1) { this.frm1_copy = frm1; }