コード例 #1
0
ファイル: MainForm.cs プロジェクト: xiechongzhu/AK
        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();
                }
            }
        }
コード例 #2
0
        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();
        }