using DevExpress.XtraEditors; using DxHelper; using ExtensionsDev; 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; using XzXdDw.App; using XzXdDw.App.Model; namespace XdCxRhDW.App.UserControl { public partial class XZGDOPParam : DevExpress.XtraEditors.XtraUserControl { public GDOP星座协同接口 Model => new GDOP星座协同接口() { TleMain = txtTleMain.Text.Trim(), TleAdja = txtTleAdja.Text.Trim(), CapTime = txtCapTime.DateTime, RefLon = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[0].Trim()), RefLat = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[1].Trim()), DtousErr = Convert.ToDouble(txtDtousErr1.Text), DfoErr = Convert.ToDouble(txtDfoErr1.Text), SatLocErr = Convert.ToDouble(txtSatLocErr1.Text), EphVelErr = Convert.ToDouble(txtEphVelErr1.Text), fu1 = Convert.ToDouble(txtFu1.Text) * 1e6, fu2 = Convert.ToDouble(txtFu2.Text) * 1e6, }; public XZGDOPParam() { InitializeComponent(); } private void XZGDOPParam_Load(object sender, EventArgs e) { txtCapTime.UseDefault(); txtCapTime.DateTime = TestData.Time; txtTleMain.UseDoubleClickToSelectAll(); txtTleAdja.UseDoubleClickToSelectAll(); txtRefLocation1.UseDoubleClickToSelectAll(); this.txtCapTime.DateTime = TestData.Time; this.txtRefLocation1.Text = TestData.RefLoc; txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleMain; txtTleAdja.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1; this.txtDtousErr1.EditValue = TestData.DtousErr; this.txtDfoErr1.EditValue = TestData.DfoHzErr; this.txtSatLocErr1.EditValue = TestData.SatLocErr; this.txtEphVelErr1.EditValue = TestData.EphVelErr; this.txtFu1.EditValue = TestData.Freq; this.txtFu2.EditValue = TestData.Freq; } private void btnOK_Click(object sender, EventArgs e) { PopupHelper.HidePopup(this); } } public class GDOP星座协同接口 { /// /// 主星星历(Tle) /// public string TleMain { get; set; } /// /// 邻星星历(Tle) /// public string TleAdja { get; set; } /// /// 采集时刻 /// public DateTime CapTime { get; set; } /// /// 参考站位置经度 /// public double RefLon { get; set; } /// /// 参考站位置纬度 /// public double RefLat { get; set; } /// /// 时差误差(单位us) /// public double DtousErr { get; set; } = 1; /// /// 频差误差(Hz) /// public double DfoErr { get; set; } /// /// 星历位置误差(单位米) /// public double SatLocErr { get; set; } = 10000; /// ///星历速度误差 /// public double EphVelErr { get; set; } /// /// 上行频点1(Hz) /// public double fu1 { get; set; } /// /// 上行频点2(Hz) /// public double fu2 { get; set; } } }