private void ShowFrmChangeProduct(int p) { FrmChangeProduct fcp = new FrmChangeProduct(); this.Myevt += new EventHandler(fcp.SetTxt); fea.Temp = p; if (this.Myevt != null) { this.Myevt(this, fea); } fcp.FormClosed += new FormClosedEventHandler(fcp_FormClosed); fcp.ShowDialog(); }
public void ShowFrmChangeProduct(int p) { FrmChangeProduct fcp = new FrmChangeProduct(); this.evtPro += new EventHandler(fcp.SetText); feas.Temp = p; if (true) { this.evtPro(this, feas); } fcp.FormClosed += new FormClosedEventHandler(fcp_FromClosed); fcp.ShowDialog(); }
private void LoadChangeProductInfo(int p) { FrmChangeProduct fcp = new FrmChangeProduct(); this.evtFcp += new EventHandler(fcp.SetText); mep.Temp = p; if (this.evtFcp != null) { this.evtFcp(this, mep); fcp.FormClosed += new FormClosedEventHandler(fcp_FormClosed); fcp.ShowDialog(); } }
//表示3---insert,4----Update private void InsertOrUpdate(int p) { FrmChangeProduct fcp = new FrmChangeProduct(); //注册事件 this.evtFcp += new EventHandler(fcp.SetText); //村标识 meaFcp.Temp = p; if(this.evtFcp!=null) { this.evtFcp(this, meaFcp); fcp.FormClosed += new FormClosedEventHandler(fcp_FormClosed); fcp.ShowDialog(); } }