public Form_Setting(Form_Main _Main) { InitializeComponent(); Main = _Main; //传递父窗口 }
Form_Main Main; //用于与父窗口通信 #endregion Fields #region Constructors public Form_Custom(Form_Main _Main) { InitializeComponent(); Main = _Main; //传递父窗口的实例 }
public Form_Setting(Form_Main _Main) { InitializeComponent(); Main = _Main; // 传递父窗口的实例 }