Communicate between two windows forms in C#

后端 未结 12 1770
温柔的废话
温柔的废话 2020-11-21 04:40

I have two forms, one is the main form and the other is an options form. So say for example that the user clicks on my menu on the main form: Tools -> Options

12条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-21 05:35

    You might try AutoMapper. Keep your options in a separate class and then use AutoMapper to shuttle the data between the class and the form.

提交回复
热议问题