C#不同窗口类中的变量相互调用

在主窗体中把要在另一个窗口中调用的变量设为static类型即可,前面还要加public

原文地址:https://www.cnblogs.com/lcxu2/p/2004030.html