private void mnItemOpenSetting_Click(object sender, EventArgs e) { StopIO(); FormGateInSetting setting = new FormGateInSetting(); setting.ShowDialog(this); StartIO(); }