internal void MainFormTxtChaned(object sender, EventArgs e) { //取到主窗体的传来的文本 WinFrmDemo.MyEventArg arg = e as WinFrmDemo.MyEventArg; this.SetText(arg.Text); }
public void AfterParentFrmTextChange(object sender, EventArgs e) { //拿到父窗体的传来的文本 WinFrmDemo.MyEventArg arg = e as WinFrmDemo.MyEventArg; this.SetText(arg.Text); }