PhoneApplicationService.cs 575 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MemoryMadness
  4. {
  5. public class PhoneApplicationService
  6. {
  7. private static PhoneApplicationService _current = null;
  8. private Dictionary<string,object> _state;
  9. private PhoneApplicationService ()
  10. {
  11. _state = new Dictionary<string, object>();
  12. }
  13. public static PhoneApplicationService Current
  14. {
  15. get
  16. {
  17. if (_current == null)
  18. _current = new PhoneApplicationService();
  19. return _current;
  20. }
  21. }
  22. public Dictionary<string,object> State
  23. {
  24. get
  25. {
  26. return _state;
  27. }
  28. }
  29. }
  30. }