Best way to communicate between forms?

后端 未结 4 1713
礼貌的吻别
礼貌的吻别 2020-12-21 08:51

I almost never used (advanced, or at all) graphical interfaces, or one simple form with simple controls... but this time I\'ve got something a little more complex, and I don

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-21 09:09

    The most flexible, scalable (and IMHO the most professional) way to do it is to use CAB (Composite Application Block). In simple terms CAB is a set of 2-3 assemblies that implement a lot of plumbing required to make complex UI applications the right way and it exposes this plumbing to the user of the library in a nice way. Among others it has a very nice event and command (as in command pattern) system.

    The downside: requires some time to learn and not very trivial to grasp.

    Here is a comprehensive (but easy to understand) tutorial that will help you make the learning easier.

提交回复
热议问题