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 DXGDOPParam : DevExpress.XtraEditors.XtraUserControl { public GDOP单星协同接口 Model => new GDOP单星协同接口() { TleLeo1 = txtTleLeo1.Text.Trim(), CapTime1 = txtCapTime1.DateTime, CapTime2 = txtCapTime2.DateTime, CapTime3 = txtCapTime3.DateTime, DfoErr = Convert.ToDouble(txtDfoErr1.Text), SatLocErr = Convert.ToDouble(txtSatLocErr1.Text), EphVelErr = Convert.ToDouble(txtEphVelErr1.Text), fu = Convert.ToDouble(txtFu1.Text)*1e6, }; public DXGDOPParam() { InitializeComponent(); } private void DXGDOPParam_Load(object sender, EventArgs e) { txtTleLeo1.UseDoubleClickToSelectAll(); txtTleLeo1.UseDefault().SetStringData(TestData.AllTle).Text = TestData.tleleo1; this.txtCapTime1.DateTime = TestData.leoTime; this.txtCapTime2.DateTime = TestData.leoTime; this.txtCapTime3.DateTime = TestData.leoTime; this.txtDfoErr1.EditValue = TestData.DtousErr; this.txtSatLocErr1.EditValue = TestData.SatLocErr; this.txtEphVelErr1.EditValue = TestData.EphVelErr; this.txtFu1.EditValue = TestData.Freq; } private void btnOK_Click(object sender, EventArgs e) { PopupHelper.HidePopup(this); } } public class GDOP单星协同接口 { /// /// 主星星历 /// public string TleLeo1 { get; set; } /// ///采集时刻1 /// public DateTime CapTime1 { get; set; } /// /// 采集时刻2 /// public DateTime CapTime2 { get; set; } /// /// 采集时刻3 /// public DateTime CapTime3 { get; set; } /// /// 频差误差(Hz) /// public double DfoErr { get; set; } /// /// 星历位置误差 /// public double SatLocErr { get; set; } = 10000; /// ///星历速度误差 /// public double EphVelErr { get; set; } /// /// 上行频点(Hz) /// public double fu { get; set; } } }