ServerViewModel.cs 504 B

123456789101112131415161718192021222324
  1. using System.Runtime.Serialization;
  2. using Microsoft.Practices.Prism.Mvvm;
  3. namespace Robot
  4. {
  5. [DataContract]
  6. public class ServerViewModel: BindableBase
  7. {
  8. [DataMember(Order = 1, IsRequired = true)]
  9. private string name;
  10. public string Name
  11. {
  12. get
  13. {
  14. return this.name;
  15. }
  16. set
  17. {
  18. this.SetProperty(ref this.name, value);
  19. }
  20. }
  21. }
  22. }