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