且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从子窗体访问MDIForm

更新时间:2023-12-06 09:05:10

您还可以设置一个全局静态类,该类包含一个事件,该事件在属性更改时触发,并以所需的形式处理该事件.
You could also set up a global static class that contains an event that fires when a property is changedand handle that event in the desired form.


IMO,如果您希望基于子项中的某些内容进行父项更改,则应在子项中引发一个事件并在该事件中传递更改的信息.
IMO, if you want to have the parent change based on something in the child, you should raise an event in the child and pass the changed information in that event.