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 DXErrEllipseParam : DevExpress.XtraEditors.XtraUserControl { public ErrEllipse单星协同接口 Model => new ErrEllipse单星协同接口() { TleMain = txtTleMain.Text.Trim(), TleAdja1 = txtTleAdja1.Text.Trim(), TleAdja2 = txtTleAdja2.Text.Trim(), CapTime = txtCapTime.DateTime, DfoErr = Convert.ToDouble(txtDfoErr1.Text), SatLocErr = Convert.ToDouble(txtSatLocErr1.Text), EphVelErr = Convert.ToDouble(txtEphVelErr1.Text), fu = Convert.ToDouble(txtFu1.Text)*1e6, }; public DXErrEllipseParam() { InitializeComponent(); } private void DXErrEllipseParam_Load(object sender, EventArgs e) { txtTleMain.UseDoubleClickToSelectAll(); txtTleAdja1.UseDoubleClickToSelectAll(); txtTleAdja2.UseDoubleClickToSelectAll(); txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleMain; txtTleAdja1.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1; txtTleAdja2.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1; this.txtCapTime.DateTime = TestData.Time; 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 ErrEllipse单星协同接口 { /// /// 第一时刻星历 /// public string TleMain { get; set; } /// ///第二时刻星历 /// public string TleAdja1 { get; set; } /// /// 第三时刻星历 /// public string TleAdja2 { get; set; } /// /// 采集时刻 /// public DateTime CapTime { 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; } } }