using DevExpress.Xpo; using System; using System.Collections.Generic; using System.Drawing.Printing; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ips.Sps.Emts { public class EmtSample : XPObject { public EmtSample() : base() { } public EmtSample(Session session) : base(session) { } public override void AfterConstruction() { base.AfterConstruction(); this.Enable = true; } private Emt _emt; [DisplayName("所属目标"), Association, ExplicitLoading] [MemberDesignTimeVisibility(false)] public Emt Emt { get => _emt; set => SetPropertyValue(nameof(Emt), ref _emt, value); } private double _sigFreq; [DisplayName("信号频点(MHz)")] public double SigFreq { get => _sigFreq; set => SetPropertyValue(nameof(SigFreq), ref _sigFreq, value); } private double _bandWidth; [DisplayName("信号带宽(kHz)")] public double BandWidth { get => _bandWidth; set => SetPropertyValue(nameof(BandWidth), ref _bandWidth, value); } private int fs; [DisplayName("采样率")] public int Fs { get => fs; set => SetPropertyValue(nameof(Fs), ref fs, value); } private int startSec; [DisplayName("开始秒数")] public int StartSec { get => startSec; set => SetPropertyValue(nameof(StartSec), ref startSec, value); } private int endSec; [DisplayName("结束秒数")] public int EndSec { get => endSec; set => SetPropertyValue(nameof(EndSec), ref endSec, value); } private string sampleFile; [DisplayName("样本文件"), Size(255)] public string SampleFile { get => sampleFile; set => SetPropertyValue(nameof(SampleFile), ref sampleFile, value); } private bool _enable; [DisplayName("启用")] public bool Enable { get => _enable; set => SetPropertyValue(nameof(Enable), ref _enable, value); } } }