这时我们在用i._change();调用系统就会提示事件只能出现在+=或-=的左边. Gui中的观察者模式 没时间了,有时间在学习了. The Observer Pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.
Design Principles: Strive for loosely coupled designs between objects that interact.