static public void showSettingForm(ref ipmsg_alert.setting appSettings) { retAppSettings = appSettings; fm = new SettingForm(retAppSettings); fm.StartPosition = FormStartPosition.CenterParent; fm.ShowDialog(); fm.Dispose(); }
/// <summary> /// SettingForm /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void settingToolStripMenuItem_Click(object sender, EventArgs e) { SettingForm.showSettingForm(ref appSettings); if (networkIndex != appSettings.netWork) { PcapClose(); PcapOpen(); } txtDefault.Visible = appSettings.defaultFlg; txtDetail.Visible = appSettings.detailFlg; picBoxMayuko.Visible = appSettings.mykFlg; }