public UCPJ_gzrjnr() { InitializeComponent(); bar3.Visible = false; initImageList(); gridViewOperation = new GridViewOperation<PJ_gzrjnr>(gridControl1, gridView1, barManager1,new frmgzrjnrEdit()); gridViewOperation.BeforeAdd += new ObjectOperationEventHandler<PJ_gzrjnr>(gridViewOperation_BeforeAdd); gridViewOperation.CreatingObjectEvent +=gridViewOperation_CreatingObjectEvent; gridViewOperation.BeforeDelete += new ObjectOperationEventHandler<PJ_gzrjnr>(gridViewOperation_BeforeDelete); gridView1.FocusedRowChanged +=gridView1_FocusedRowChanged; this.Disposed += new EventHandler(UCPJ_gzrjnr_Disposed); mInstance = this; }
void UCPJ_gzrjnr_Disposed(object sender, EventArgs e) { mInstance = null; }