RobotPoint.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Newtonsoft.Json;
  2. using Prism.Mvvm;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Collections.ObjectModel;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using TeamAAS_VP.Interfaces;
  10. namespace TeamAAS_VP.Models
  11. {
  12. /// <summary>
  13. /// 机器人点位表
  14. /// </summary>
  15. public class RobotPoint:BindableBase
  16. {
  17. private ObservableCollection<Pallet> _Pallets;
  18. /// <summary>
  19. /// 托盘集合
  20. /// </summary>
  21. public ObservableCollection<Pallet> Pallets
  22. {
  23. get { return _Pallets; }
  24. set { SetProperty(ref _Pallets,value); }
  25. }
  26. private ObservableCollection<MultipleRobotPoint> _Points;
  27. /// <summary>
  28. /// 机器人点位集合
  29. /// </summary>
  30. public ObservableCollection<MultipleRobotPoint> Points
  31. {
  32. get { return _Points; }
  33. set { SetProperty(ref _Points, value); }
  34. }
  35. public RobotPoint Clone()
  36. {
  37. return JsonConvert.DeserializeObject<RobotPoint>(JsonConvert.SerializeObject(this)); ;
  38. }
  39. }
  40. }