UpdateCompleteEventArgs.cs 769 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. namespace Microsoft.Samples.AppUpdater
  3. {
  4. public class UpdateCompleteEventArgs : EventArgs
  5. {
  6. private bool _UpdateSucceeded;
  7. private Exception _FailureException;
  8. private string _ErrorMessage;
  9. private Version _NewVersion;
  10. public bool UpdateSucceeded
  11. {
  12. get
  13. {
  14. return _UpdateSucceeded;
  15. }
  16. set
  17. {
  18. _UpdateSucceeded = value;
  19. }
  20. }
  21. public Exception FailureException
  22. {
  23. get
  24. {
  25. return _FailureException;
  26. }
  27. set
  28. {
  29. _FailureException = value;
  30. }
  31. }
  32. public string ErrorMessage
  33. {
  34. get
  35. {
  36. return _ErrorMessage;
  37. }
  38. set
  39. {
  40. _ErrorMessage = value;
  41. }
  42. }
  43. public Version NewVersion
  44. {
  45. get
  46. {
  47. return _NewVersion;
  48. }
  49. set
  50. {
  51. _NewVersion = value;
  52. }
  53. }
  54. }
  55. }