电子药箱通讯服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TimeFlagModel.cs 574B

12345678910111213141516171819202122232425
  1. using Prism.Mvvm;
  2. using PropertyChanged;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Rdh.SocketServer.Client.ViewModels
  9. {
  10. [AddINotifyPropertyChangedInterface]
  11. public class TimeFlagModel<T> : BindableBase
  12. {
  13. public TimeFlagModel()
  14. {
  15. CreateTime = DateTime.Now;
  16. }
  17. public TimeFlagModel(T t) :this()
  18. {
  19. Model = t;
  20. }
  21. public T Model { get; set; }
  22. public DateTime CreateTime { get; set; }
  23. }
  24. }