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(), CapTime = txtCapTime.DateTime, CapTime1=txtCapTime1.DateTime, CapTime2=txtCapTime2.DateTime, DfoErr = Convert.ToDouble(txtDfoErr1.Text), SatLocErr = Convert.ToDouble(txtSatLocErr1.Text), EphVelErr = Convert.ToDouble(txtEphVelErr1.Text), fu = Convert.ToDouble(txtFu1.Text)*1e6, }; public DXErrEllipseParam(double MBfu) { InitializeComponent(); txtTleMain.UseDoubleClickToSelectAll(); txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.tleleo1; this.txtCapTime.DateTime = TestData.Time; this.txtCapTime1.DateTime = TestData.Time; this.txtCapTime2.DateTime = TestData.Time; this.txtDfoErr1.EditValue = TestData.DfoHzErr; this.txtSatLocErr1.EditValue = TestData.SatLocErr; this.txtEphVelErr1.EditValue = TestData.EphVelErr; this.txtFu1.EditValue = MBfu * 1e-6; } private void btnOK_Click(object sender, EventArgs e) { PopupHelper.HidePopup(this); } } public class ErrEllipse单星协同接口 { /// /// 主星星历 /// public string TleMain { get; set; } /// /// 采集时刻1 /// public DateTime CapTime { get; set; } /// /// 采集时刻2 /// public DateTime CapTime1 { get; set; } /// /// 采集时刻3 /// public DateTime CapTime2 { 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; } } }