ServerViewModel.cs 580 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using Microsoft.Practices.Prism.ViewModel;
  8. namespace Robot
  9. {
  10. [DataContract]
  11. public class ServerViewModel : NotificationObject
  12. {
  13. [DataMember(Order = 1, IsRequired = true)]
  14. private string name;
  15. public string Name
  16. {
  17. get
  18. {
  19. return this.name;
  20. }
  21. set
  22. {
  23. if (this.name == value)
  24. {
  25. return;
  26. }
  27. this.name = value;
  28. this.RaisePropertyChanged("Name");
  29. }
  30. }
  31. }
  32. }