PageRenderTime 45ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/V4/Quickstarts/View-Switching Navigation/Silverlight/View-Switching Navigation/ViewSwitchingNavigation.Email/Model/EmailDocument.cs

#
C# | 43 lines | 20 code | 7 blank | 16 comment | 0 complexity | 3948581763f9de5c194c3f381c442cdd MD5 | raw file
  1. //===================================================================================
  2. // Microsoft patterns & practices
  3. // Composite Application Guidance for Windows Presentation Foundation and Silverlight
  4. //===================================================================================
  5. // Copyright (c) Microsoft Corporation. All rights reserved.
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
  7. // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
  8. // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  9. // FITNESS FOR A PARTICULAR PURPOSE.
  10. //===================================================================================
  11. // The example companies, organizations, products, domain names,
  12. // e-mail addresses, logos, people, places, and events depicted
  13. // herein are fictitious. No association with any real company,
  14. // organization, product, domain name, email address, logo, person,
  15. // places, or events is intended or should be inferred.
  16. //===================================================================================
  17. using System;
  18. namespace ViewSwitchingNavigation.Email.Model
  19. {
  20. public class EmailDocument
  21. {
  22. public EmailDocument()
  23. : this(Guid.NewGuid())
  24. {
  25. }
  26. public EmailDocument(Guid id)
  27. {
  28. this.Id = id;
  29. }
  30. public string From { get; set;}
  31. public string To { get; set;}
  32. public string Subject { get; set;}
  33. public string Text { get; set;}
  34. public Guid Id { get; private set;}
  35. }
  36. }