init - 初始化项目
This commit is contained in:
45
samples/winrt/ImageManipulations/Constants.h
Normal file
45
samples/winrt/ImageManipulations/Constants.h
Normal file
@@ -0,0 +1,45 @@
|
||||
//*********************************************************
|
||||
//
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
|
||||
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
|
||||
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
|
||||
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
|
||||
//
|
||||
//*********************************************************
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <collection.h>
|
||||
namespace SDKSample
|
||||
{
|
||||
public value struct Scenario
|
||||
{
|
||||
Platform::String^ Title;
|
||||
Platform::String^ ClassName;
|
||||
};
|
||||
|
||||
partial ref class MainPage
|
||||
{
|
||||
public:
|
||||
static property Platform::String^ FEATURE_NAME
|
||||
{
|
||||
Platform::String^ get()
|
||||
{
|
||||
return ref new Platform::String(L"OpenCV Image Manipulations sample");
|
||||
}
|
||||
}
|
||||
|
||||
static property Platform::Array<Scenario>^ scenarios
|
||||
{
|
||||
Platform::Array<Scenario>^ get()
|
||||
{
|
||||
return scenariosInner;
|
||||
}
|
||||
}
|
||||
private:
|
||||
static Platform::Array<Scenario>^ scenariosInner;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user