using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace DataCollectionSystem { public partial class FormSystemSetting : DevComponents.DotNetBar.Metro.MetroForm { public FormSystemSetting() { InitializeComponent(); } private void BtnMonitorTargetSetting_Click(object sender, EventArgs e) { FormMonitorDevice form = new FormMonitorDevice(); if( form.ShowDialog() == DialogResult.OK) { //如果联机状态,断开链接,刷新界面 } } private void BtnParamSetting_Click(object sender, EventArgs e) { DeviceSettingForm dvcFrm = new DeviceSettingForm(); if (dvcFrm.ShowDialog() == DialogResult.OK) { } } } }