private void btnSetting_Click(object sender, EventArgs e) { SettingForm settingForm = new SettingForm(); if (settingForm.ShowDialog() == DialogResult.OK) { if (Config.GetInstance().LoadConfigFile(out _)) { ClearAllChart(); InitChartPoints(); InitPositionSpeedMaxMin(); } } }
private void btnViewConfig_Click(object sender, EventArgs e) { if (null == historyData) { XtraMessageBox.Show("读取配置失败", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } SettingForm settingForm = new SettingForm(); settingForm.SetViwMode(); settingForm.SetParams(historyData.LongitudeInit, historyData.LatitudeInit, historyData.HeightInit, historyData.AzimuthInit, historyData.PlacementHeight, historyData.Flightshot, historyData.ForwardLine, historyData.BackwardLine, historyData.SideLine, historyData.StrMultiCastIpAddr, historyData.Port, historyData.StationId, historyData.SpeedError, historyData.PointError, historyData.MaxPointCount); settingForm.ShowDialog(); }