Skip to content

Commit b17c493

Browse files
Merge pull request #1 from Mohanraj-Guna/master
ReminderEvents demo
2 parents 3c78b00 + c68aa59 commit b17c493

File tree

13 files changed

+576
-0
lines changed

13 files changed

+576
-0
lines changed

ReminderEvents/ReminderEvents.sln

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReminderEvents", "ReminderEvents\ReminderEvents.csproj", "{9254E707-1783-4D9B-B674-E848A7DEBF41}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{9254E707-1783-4D9B-B674-E848A7DEBF41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{9254E707-1783-4D9B-B674-E848A7DEBF41}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{9254E707-1783-4D9B-B674-E848A7DEBF41}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{9254E707-1783-4D9B-B674-E848A7DEBF41}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
5+
</startup>
6+
</configuration>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Application x:Class="ReminderEvents.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:ReminderEvents"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace ReminderEvents
10+
{
11+
/// <summary>
12+
/// Interaction logic for App.xaml
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Window x:Class="ReminderEvents.MainWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:ReminderEvents"
7+
xmlns:schedule="http://schemas.syncfusion.com/wpf"
8+
mc:Ignorable="d"
9+
Title="MainWindow" Height="500" Width="925">
10+
<Grid>
11+
<schedule:SfSchedule x:Name="schedule" ScheduleType="Month"/>
12+
</Grid>
13+
</Window>
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
using Syncfusion.UI.Xaml.Schedule;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
using System.Windows.Controls;
9+
using System.Windows.Data;
10+
using System.Windows.Documents;
11+
using System.Windows.Input;
12+
using System.Windows.Media;
13+
using System.Windows.Media.Imaging;
14+
using System.Windows.Navigation;
15+
using System.Windows.Shapes;
16+
17+
namespace ReminderEvents
18+
{
19+
/// <summary>
20+
/// Interaction logic for MainWindow.xaml
21+
/// </summary>
22+
public partial class MainWindow : Window
23+
{
24+
public MainWindow()
25+
{
26+
InitializeComponent();
27+
28+
DateTime currentDate = DateTime.Now;
29+
30+
schedule.EnableReminderTimer = true;
31+
32+
schedule.Appointments.Add(new ScheduleAppointment
33+
34+
{
35+
36+
StartTime = DateTime.Now.Date.AddHours(9),
37+
38+
EndTime = DateTime.Now.Date.AddHours(12),
39+
40+
AppointmentBackground = new SolidColorBrush(Color.FromArgb(0xFf, 0xA2, 0xC1, 0x39)),
41+
42+
Subject = "Business Meeting",
43+
44+
ReminderTime = ReminderTimeType.TenHours
45+
46+
});
47+
48+
schedule.Appointments.Add(new ScheduleAppointment
49+
50+
{
51+
52+
StartTime = currentDate.Date.AddDays(1).AddHours(10),
53+
54+
EndTime = currentDate.Date.AddDays(1).AddHours(16),
55+
56+
AppointmentBackground = new SolidColorBrush(Color.FromArgb(0xFf, 0xD8, 0x00, 0x73)),
57+
58+
Subject = "Auditing",
59+
60+
ReminderTime = ReminderTimeType.TwoDays
61+
62+
});
63+
64+
schedule.Appointments.Add(new ScheduleAppointment
65+
66+
{
67+
68+
StartTime = DateTime.Now.Date.AddDays(7).AddHours(10),
69+
70+
EndTime = DateTime.Now.Date.AddDays(7).AddHours(13),
71+
72+
AppointmentBackground = new SolidColorBrush(Color.FromArgb(0xFf, 0xF0, 0x96, 0x09)),
73+
74+
Subject = "Conference",
75+
76+
ReminderTime = ReminderTimeType.TwoWeeks
77+
78+
});
79+
this.schedule.ReminderFormActionChanged += Schedule_ReminderFormActionChanged;
80+
this.schedule.ReminderClosed += Schedule_ReminderClosed;
81+
this.schedule.ReminderOpening += Schedule_ReminderOpening;
82+
}
83+
84+
private void Schedule_ReminderOpening(object sender, ReminderControlOpeningEventArgs e)
85+
{
86+
//To get the list of reminder appointments from reminder window.
87+
var collection = e.RemindAppCollection;
88+
}
89+
90+
private void Schedule_ReminderClosed(object sender, ReminderControlClosedEventArgs e)
91+
{
92+
93+
}
94+
95+
private void Schedule_ReminderFormActionChanged(object sender, ReminderFormActionChangedEventArgs e)
96+
{
97+
//To Get the action of schedule appointments.
98+
ReminderAction action = e.Action;
99+
//To Get list of appointments that are changed.
100+
var appointments = e.Appointments;
101+
//To Get the snooze time of action changed appointments.
102+
var timeSpan = e.SnoozeTime;
103+
}
104+
}
105+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
using System.Reflection;
2+
using System.Resources;
3+
using System.Runtime.CompilerServices;
4+
using System.Runtime.InteropServices;
5+
using System.Windows;
6+
7+
// General Information about an assembly is controlled through the following
8+
// set of attributes. Change these attribute values to modify the information
9+
// associated with an assembly.
10+
[assembly: AssemblyTitle("ReminderEvents")]
11+
[assembly: AssemblyDescription("")]
12+
[assembly: AssemblyConfiguration("")]
13+
[assembly: AssemblyCompany("")]
14+
[assembly: AssemblyProduct("ReminderEvents")]
15+
[assembly: AssemblyCopyright("Copyright © 2019")]
16+
[assembly: AssemblyTrademark("")]
17+
[assembly: AssemblyCulture("")]
18+
19+
// Setting ComVisible to false makes the types in this assembly not visible
20+
// to COM components. If you need to access a type in this assembly from
21+
// COM, set the ComVisible attribute to true on that type.
22+
[assembly: ComVisible(false)]
23+
24+
//In order to begin building localizable applications, set
25+
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
26+
//inside a <PropertyGroup>. For example, if you are using US english
27+
//in your source files, set the <UICulture> to en-US. Then uncomment
28+
//the NeutralResourceLanguage attribute below. Update the "en-US" in
29+
//the line below to match the UICulture setting in the project file.
30+
31+
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32+
33+
34+
[assembly: ThemeInfo(
35+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36+
//(used if a resource is not found in the page,
37+
// or application resource dictionaries)
38+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39+
//(used if a resource is not found in the page,
40+
// app, or any theme specific resource dictionaries)
41+
)]
42+
43+
44+
// Version information for an assembly consists of the following four values:
45+
//
46+
// Major Version
47+
// Minor Version
48+
// Build Number
49+
// Revision
50+
//
51+
// You can specify all the values or you can default the Build and Revision Numbers
52+
// by using the '*' as shown below:
53+
// [assembly: AssemblyVersion("1.0.*")]
54+
[assembly: AssemblyVersion("1.0.0.0")]
55+
[assembly: AssemblyFileVersion("1.0.0.0")]

ReminderEvents/ReminderEvents/Properties/Resources.Designer.cs

Lines changed: 63 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)