forked from microsoft/Windows-universal-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SampleConfiguration.cs
40 lines (35 loc) · 1.34 KB
/
SampleConfiguration.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// 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.
//
//*********************************************************
using System;
using System.Collections.Generic;
using Windows.ApplicationModel.Background;
using Windows.Storage;
using Windows.UI.Xaml.Controls;
namespace SDKTemplate
{
public partial class MainPage : Page
{
public const string FEATURE_NAME = "Bluetooth Low Energy C# Sample";
List<Scenario> scenarios = new List<Scenario>
{
new Scenario() { Title="Client: Discover servers", ClassType=typeof(Scenario1_Discovery) },
new Scenario() { Title="Client: Connect to a server", ClassType=typeof(Scenario2_Client) },
new Scenario() { Title="Server: Publish foreground", ClassType=typeof(Scenario3_ServerForeground) },
};
public string SelectedBleDeviceId;
public string SelectedBleDeviceName = "No device selected";
}
public class Scenario
{
public string Title { get; set; }
public Type ClassType { get; set; }
}
}