forked from syncfusion/uwp-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScheduleHelperClass.cs
48 lines (45 loc) · 3.55 KB
/
ScheduleHelperClass.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
41
42
43
44
45
46
47
48
#region Copyright Syncfusion Inc. 2001-2020.
// Copyright Syncfusion Inc. 2001-2020. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applicable laws.
#endregion
using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Syncfusion.SampleBrowser.UWP.Schedule
{
class SamplesConfiguration
{
public SamplesConfiguration()
{
if (DeviceFamily.GetDeviceFamily() == Devices.Desktop)
{
#if STORE_SAMPLE
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.GettingStarted_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "GettingStarted", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true });
#else
SampleHelper.SetTagsForProduct("Schedule", Tags.None);
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.GettingStarted_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "GettingStarted", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true });
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.CustomizationDemo_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "Customization", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false });
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.RecurrenceAppointment_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "Recurrence Appointments", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false });
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.ResourceDemo_WinRT).AssemblyQualifiedName, Product = "Schedule", Header = "Resource", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false });
#endif
}
else
{
#if STORE_SAMPLE
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.GettingStarted).AssemblyQualifiedName , Product = "Schedule",ProductIcons = "Icons/Schedule.png", Header = "GettingStarted", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true });
#else
SampleHelper.SetTagsForProduct("Schedule", Tags.None);
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.GettingStarted).AssemblyQualifiedName, Product = "Schedule", Header = "GettingStarted", ProductIcons = "Icons/Schedule.png", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = true });
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.CustomizationDemo).AssemblyQualifiedName, Product = "Schedule", Header = "Customization", ProductIcons = "Icons/Schedule.png", Tag = Tags.None, Category = Categories.DataVisualization, HasOptions = false });
SampleHelper.SampleViews.Add(new SampleInfo() { SampleView = typeof(ScheduleUWP_Samples.RecurrenceAppointment).AssemblyQualifiedName, Product = "Schedule", Header = "Recurrence Appointments",Tag = Tags.None, ProductIcons= "Icons/Schedule.png" ,Category = Categories.DataVisualization, HasOptions = false });
#endif
}
}
}
}