Constants.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //*********************************************************
  2. //
  3. // Copyright (c) Microsoft. All rights reserved.
  4. // THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
  5. // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
  6. // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
  7. // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
  8. //
  9. //*********************************************************
  10. #pragma once
  11. #include <collection.h>
  12. namespace SDKSample
  13. {
  14. public value struct Scenario
  15. {
  16. Platform::String^ Title;
  17. Platform::String^ ClassName;
  18. };
  19. partial ref class MainPage
  20. {
  21. public:
  22. static property Platform::String^ FEATURE_NAME
  23. {
  24. Platform::String^ get()
  25. {
  26. return ref new Platform::String(L"OpenCV Image Manipulations sample");
  27. }
  28. }
  29. static property Platform::Array<Scenario>^ scenarios
  30. {
  31. Platform::Array<Scenario>^ get()
  32. {
  33. return scenariosInner;
  34. }
  35. }
  36. private:
  37. static Platform::Array<Scenario>^ scenariosInner;
  38. };
  39. }