TestViewModel.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System.Collections.Generic;
  2. using Vinno.IUS.Common.Client.ViewModels;
  3. namespace Flyinsono.Client.Test.ViewModels
  4. {
  5. public class TestViewModel : ViewModel
  6. {
  7. private string _uploadFilePath;
  8. public Command BrowseCommand { get; }
  9. public string UploadFilePath
  10. {
  11. get { return _uploadFilePath; }
  12. set
  13. {
  14. if (_uploadFilePath != value)
  15. {
  16. _uploadFilePath = value;
  17. OnPropertyChanged(() => UploadFilePath);
  18. }
  19. }
  20. }
  21. public TestViewModel()
  22. {
  23. BrowseCommand = new ButtonCommand(OnBrowse);
  24. }
  25. private void OnBrowse(object obj)
  26. {
  27. }
  28. }
  29. public class ImportBugsRequest
  30. {
  31. public string Version { get; set; }
  32. public IList<BugInfo> Bugs { get; set; }
  33. public ImportBugsRequest()
  34. {
  35. Bugs = new List<BugInfo>();
  36. }
  37. }
  38. public class BugInfo
  39. {
  40. public int BugNo { get; set; }
  41. public string Title { get; set; }
  42. }
  43. }