in my program ,i met one Exception. i writed on event to reflush one object whose type is string or user-defined type ,and the object has diffirent values in diffirent component object;so i had planed to get diffirent value storing diffrent component ,but if i do it like this ,i just make the all component object have the same value,because it
reflush all object ; so i generate one rule:
Parent invoke child ,just instance it ,and invoke its method to do
child invok parent ,child has one event and regiter it in parent;
在程序中遇到对象刷新导致字符串或自定义类型值在不同组件对象间不一致时,作者提出了一种解决方案:父类调用子类实例的方法进行操作,同时子类注册事件并通知父类。通过这种方式,确保了每个组件对象能够独立存储不同值,避免了值统一的问题。
1871

被折叠的 条评论
为什么被折叠?



