ServerViewModel.cs 607 B

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