SatViewModel.cs 983 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using DW5S.ViewModel;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace XdCxRhDW5S.ViewModel
  10. {
  11. public class SatViewModel : BaseViewModel<int>
  12. {
  13. [Display(Name = "卫星编号")]
  14. public int SatCode { get; set; }
  15. [Display(Name = "卫星名称")]
  16. public string SatName { get; set; }
  17. [Display(Name = "轨道经度")]
  18. public double? SatLon { get; set; }
  19. [Display(Name = "卫星本振(MHz)")]
  20. public double? SatTrans { get; set; }
  21. [Display(Name = "卫星")]
  22. public string Sat
  23. {
  24. get
  25. {
  26. if (SatLon == null)
  27. return $"{SatName}({SatCode})";
  28. else
  29. return $"[{SatLon}°]{SatName}({SatCode})";
  30. }
  31. }
  32. }
  33. }