{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-scheduler-demo",
  "framework": "winforms",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "scheduler-demo",
  "dependencies": [
    "Syncfusion.Schedule.Windows"
  ],
  "description": "Schedule populated from a sample data source showing day, week, workweek, month and agenda views with appointment navigation.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/winforms/llms.txt",
    "skillPack": "syncfusion/winforms-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/winforms/scheduler-scheduler-demo.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-scheduler-demo/scheduler.Designer.cs",
      "content": "﻿using System.Drawing;\nusing System.Windows.Forms;\n\nnamespace SchedulerDemo\n{\n    partial class Form1\n    {\n        /// <summary>\n        /// Required designer variable.\n        /// </summary>\n        private System.ComponentModel.IContainer components = null;\n\n        /// <summary>\n        /// Clean up any resources being used.\n        /// </summary>\n        protected override void Dispose(bool disposing)\n        {\n            if (disposing && (components != null))\n            {\n                components.Dispose();\n            }\n            base.Dispose(disposing);\n        }\n        #region Windows Form Designer generated code\n\n        /// <summary>\n        /// Required method for Designer support - do not modify\n        /// the contents of this method with the code editor.\n        /// </summary>\n        private void InitializeComponent()\n        {\n            this.components = new System.ComponentModel.Container();\n            this.scheduleControl1 = new Syncfusion.Windows.Forms.Schedule.ScheduleControl();\n            this.buttonAdv6 = new Syncfusion.Windows.Forms.ButtonAdv();\n            this.label1 = new System.Windows.Forms.Label();\n            this.panel1 = new System.Windows.Forms.Panel();\n            this.comboBoxAdv4 = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();\n            this.comboBoxAdv3 = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();\n            this.comboBoxAdv1 = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();\n            this.comboBoxAdv2 = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();\n            this.panel2 = new System.Windows.Forms.Panel();\n            this.comboBoxAdv5 = new Syncfusion.Windows.Forms.Tools.ComboBoxAdv();\n            this.pictureBox1 = new System.Windows.Forms.PictureBox();\n            this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);\n            this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.saveCalendarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.mergeCalendarAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.randomDataToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.contextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components);\n            this.newItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.newAllDayItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.editItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.deleteItemToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.contextMenuStrip3 = new System.Windows.Forms.ContextMenuStrip(this.components);\n            this.dayToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.workWeekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.weekToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.monthToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.contextMenuStrip4 = new System.Windows.Forms.ContextMenuStrip(this.components);\n            this.appearanceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.changeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();\n            this.cultureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.invariantToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.applicationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.frIRToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.itITToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.enUSToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.deDEToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.navigationPanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.hiddenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.leftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.rightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.saveOnCloseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.doNotSaveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.promptBeforSavingToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.saveWithoutPromptToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.weekNumbersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.alertsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.additionalPanelToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.testsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\n            this.pictureBox2 = new System.Windows.Forms.PictureBox();\n            this.panel1.SuspendLayout();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv4)).BeginInit();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv3)).BeginInit();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).BeginInit();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv2)).BeginInit();\n            this.panel2.SuspendLayout();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv5)).BeginInit();\n            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();\n            this.contextMenuStrip1.SuspendLayout();\n            this.contextMenuStrip2.SuspendLayout();\n            this.contextMenuStrip3.SuspendLayout();\n            this.contextMenuStrip4.SuspendLayout();\n            ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();\n            this.SuspendLayout();\n            //\n            // scheduleControl1\n            //\n            this.scheduleControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\n                        | System.Windows.Forms.AnchorStyles.Left)\n                        | System.Windows.Forms.AnchorStyles.Right)));\n            this.scheduleControl1.BackColor = System.Drawing.Color.Gray;\n            this.scheduleControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\n            this.scheduleControl1.Culture = new System.Globalization.CultureInfo(\"\");\n            this.scheduleControl1.DataSource = null;\n            this.scheduleControl1.Font = new System.Drawing.Font(\"Segoe UI\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.scheduleControl1.ForeColor = System.Drawing.SystemColors.ControlText;\n            this.scheduleControl1.ISO8601CalenderFormat = false;\n            this.scheduleControl1.Location = new System.Drawing.Point(6, 3);\n            this.scheduleControl1.Name = \"scheduleControl1\";\n            this.scheduleControl1.NavigationPanelPosition = Syncfusion.Schedule.CalendarNavigationPanelPosition.Left;\n            this.scheduleControl1.ShowRoundedCorners = true;\n            this.scheduleControl1.Size = new System.Drawing.Size(963, 445);\n            this.scheduleControl1.TabIndex = 3;\n            //\n            // buttonAdv6\n            //\n            this.buttonAdv6.Appearance = Syncfusion.Windows.Forms.ButtonAppearance.Metro;\n            this.buttonAdv6.BackColor = System.Drawing.Color.DeepSkyBlue;\n            this.buttonAdv6.Font = new System.Drawing.Font(\"Segoe UI\", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.buttonAdv6.ForeColor = System.Drawing.Color.White;\n            this.buttonAdv6.Location = new System.Drawing.Point(217, 30);\n            this.buttonAdv6.Name = \"buttonAdv6\";\n            this.buttonAdv6.Size = new System.Drawing.Size(84, 25);\n            this.buttonAdv6.TabIndex = 10;\n            this.buttonAdv6.Text = \"Load\";\n            this.buttonAdv6.UseVisualStyle = true;\n            this.buttonAdv6.Click += new System.EventHandler(this.buttonAdv6_Click);\n            //\n            // label1\n            //\n            this.label1.AutoSize = true;\n            this.label1.Font = new System.Drawing.Font(\"Segoe UI\", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.label1.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.label1.Location = new System.Drawing.Point(2, 11);\n            this.label1.Name = \"label1\";\n            this.label1.Size = new System.Drawing.Size(143, 20);\n            this.label1.TabIndex = 11;\n            this.label1.Text = \"Choose Data Source\";\n            //\n            // panel1\n            //\n            this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)\n                        | System.Windows.Forms.AnchorStyles.Left)\n                        | System.Windows.Forms.AnchorStyles.Right)));\n            this.panel1.Controls.Add(this.scheduleControl1);\n            this.panel1.Location = new System.Drawing.Point(12, 126);\n            this.panel1.Name = \"panel1\";\n            this.panel1.Size = new System.Drawing.Size(973, 448);\n            this.panel1.TabIndex = 13;\n            //\n            // comboBoxAdv4\n            //\n            this.comboBoxAdv4.BackColor = System.Drawing.Color.White;\n            this.comboBoxAdv4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\n            this.comboBoxAdv4.Font = new System.Drawing.Font(\"Segoe UI\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.comboBoxAdv4.Location = new System.Drawing.Point(10, 26);\n            this.comboBoxAdv4.Name = \"comboBoxAdv4\";\n            this.comboBoxAdv4.Size = new System.Drawing.Size(119, 21);\n            this.comboBoxAdv4.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;\n            this.comboBoxAdv4.TabIndex = 19;\n            //\n            // comboBoxAdv3\n            //\n            this.comboBoxAdv3.BackColor = System.Drawing.Color.White;\n            this.comboBoxAdv3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\n            this.comboBoxAdv3.Font = new System.Drawing.Font(\"Segoe UI\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.comboBoxAdv3.Location = new System.Drawing.Point(6, 26);\n            this.comboBoxAdv3.Name = \"comboBoxAdv3\";\n            this.comboBoxAdv3.Size = new System.Drawing.Size(119, 21);\n            this.comboBoxAdv3.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;\n            this.comboBoxAdv3.TabIndex = 19;\n            //\n            // comboBoxAdv1\n            //\n            this.comboBoxAdv1.BackColor = System.Drawing.Color.White;\n            this.comboBoxAdv1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\n            this.comboBoxAdv1.Font = new System.Drawing.Font(\"Segoe UI\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.comboBoxAdv1.Location = new System.Drawing.Point(13, 28);\n            this.comboBoxAdv1.Name = \"comboBoxAdv1\";\n            this.comboBoxAdv1.Size = new System.Drawing.Size(119, 21);\n            this.comboBoxAdv1.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;\n            this.comboBoxAdv1.TabIndex = 18;\n            //\n            // comboBoxAdv2\n            //\n            this.comboBoxAdv2.BackColor = System.Drawing.Color.White;\n            this.comboBoxAdv2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;\n            this.comboBoxAdv2.Font = new System.Drawing.Font(\"Segoe UI\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.comboBoxAdv2.Location = new System.Drawing.Point(10, 28);\n            this.comboBoxAdv2.Name = \"comboBoxAdv2\";\n            this.comboBoxAdv2.Size = new System.Drawing.Size(119, 21);\n            this.comboBoxAdv2.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;\n            this.comboBoxAdv2.TabIndex = 18;\n            //\n            // panel2\n            //\n            this.panel2.Controls.Add(this.pictureBox2);\n            this.panel2.Controls.Add(this.comboBoxAdv5);\n            this.panel2.Controls.Add(this.label1);\n            this.panel2.Controls.Add(this.buttonAdv6);\n            this.panel2.Location = new System.Drawing.Point(12, 58);\n            this.panel2.Name = \"panel2\";\n            this.panel2.Size = new System.Drawing.Size(972, 62);\n            this.panel2.TabIndex = 26;\n            //\n            // comboBoxAdv5\n            //\n            this.comboBoxAdv5.AllowNewText = false;\n            this.comboBoxAdv5.BackColor = System.Drawing.Color.White;\n            this.comboBoxAdv5.Font = new System.Drawing.Font(\"Segoe UI\", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.comboBoxAdv5.ForeColor = System.Drawing.SystemColors.ControlDark;\n            this.comboBoxAdv5.Location = new System.Drawing.Point(6, 34);\n            this.comboBoxAdv5.Name = \"comboBoxAdv5\";\n            this.comboBoxAdv5.Size = new System.Drawing.Size(188, 21);\n            this.comboBoxAdv5.Style = Syncfusion.Windows.Forms.VisualStyle.Metro;\n            this.comboBoxAdv5.TabIndex = 27;\n            //\n            // pictureBox1\n            //\n            this.pictureBox1.Location = new System.Drawing.Point(3, 0);\n            this.pictureBox1.Name = \"pictureBox1\";\n            this.pictureBox1.Size = new System.Drawing.Size(451, 37);\n            this.pictureBox1.TabIndex = 27;\n            this.pictureBox1.TabStop = false;\n            //\n            // contextMenuStrip1\n            //\n            this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.newToolStripMenuItem,\n            this.openToolStripMenuItem,\n            this.saveCalendarToolStripMenuItem,\n            this.saveToolStripMenuItem,\n            this.mergeCalendarAsToolStripMenuItem,\n            this.randomDataToolStripMenuItem,\n            this.exitToolStripMenuItem});\n            this.contextMenuStrip1.Name = \"contextMenuStrip1\";\n            this.contextMenuStrip1.Size = new System.Drawing.Size(175, 158);\n            //\n            // newToolStripMenuItem\n            //\n            this.newToolStripMenuItem.Name = \"newToolStripMenuItem\";\n            this.newToolStripMenuItem.Size = new System.Drawing.Size(174, 22);\n            this.newToolStripMenuItem.Text = \"New Calendar\";\n            this.newToolStripMenuItem.Click += new System.EventHandler(this.newToolStripMenuItem_Click);\n            //\n            // openToolStripMenuItem\n            //\n            this.openToolStripMenuItem.Name = \"openToolStripMenuItem\";\n            this.openToolStripMenuItem.Size = new System.Drawing.Size(174, 22);\n            this.openToolStripMenuItem.Text = \"Open Calendar\";\n            this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);\n            //\n            // saveCalendarToolStripMenuItem\n            //\n            this.saveCalendarToolStripMenuItem.Name = \"saveCalendarToolStripMenuItem\";\n            this.saveCalendarToolStripMenuItem.Size = new System.Drawing.Size(174, 22);\n            this.saveCalendarToolStripMenuItem.Text = \"Save Calendar\";\n            this.saveCalendarToolStripMenuItem.Click += new System.EventHandler(this.saveCalendarToolStripMenuItem_Click);\n            //\n            // saveToolStripMenuItem\n            //\n            this.saveToolStripMenuItem.Name = \"saveToolStripMenuItem\";\n            this.saveToolStripMenuItem.Size = new System.Drawing.Size(174, 22);\n            this.saveToolStripMenuItem.Text = \"Save Calendar As\";\n            this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);\n            //\n            // mergeCalendarAsToolStripMenuItem\n            //\n            this.mergeCalendarAsToolStripMenuItem.Name = \"mergeCalendarAsToolStripMenuItem\";\n            this.mergeCalendarAsToolStripMenuItem.Size = new System.Drawing.Size(174, 22);\n            this.mergeCalendarAsToolStripMenuItem.Text = \"Merge Calendar As\";\n            this.mergeCalendarAsToolStripMenuItem.Click += new System.EventHandler(this.mergeCalendarAsToolStripMenuItem_Click);\n            //\n            // randomDataToolStripMenuItem\n            //\n            this.randomDataToolStripMenuItem.Name = \"randomDataToolStripMenuItem\";\n            this.randomDataToolStripMenuItem.Size = new System.Drawing.Size(174, 22);\n            this.randomDataToolStripMenuItem.Text = \"Random Data\";\n            this.randomDataToolStripMenuItem.Click += new System.EventHandler(this.randomDataToolStripMenuItem_Click);\n            //\n            // exitToolStripMenuItem\n            //\n            this.exitToolStripMenuItem.Name = \"exitToolStripMenuItem\";\n            this.exitToolStripMenuItem.Size = new System.Drawing.Size(174, 22);\n            this.exitToolStripMenuItem.Text = \"Exit\";\n            this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);\n            //\n            // contextMenuStrip2\n            //\n            this.contextMenuStrip2.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.newItemToolStripMenuItem,\n            this.newAllDayItemToolStripMenuItem,\n            this.editItemToolStripMenuItem,\n            this.deleteItemToolStripMenuItem});\n            this.contextMenuStrip2.Name = \"contextMenuStrip2\";\n            this.contextMenuStrip2.Size = new System.Drawing.Size(180, 92);\n            //\n            // newItemToolStripMenuItem\n            //\n            this.newItemToolStripMenuItem.Name = \"newItemToolStripMenuItem\";\n            this.newItemToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.newItemToolStripMenuItem.Text = \"New Item\";\n            this.newItemToolStripMenuItem.Click += new System.EventHandler(this.newItemToolStripMenuItem_Click);\n            //\n            // newAllDayItemToolStripMenuItem\n            //\n            this.newAllDayItemToolStripMenuItem.Name = \"newAllDayItemToolStripMenuItem\";\n            this.newAllDayItemToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.newAllDayItemToolStripMenuItem.Text = \"New All Day Item\";\n            this.newAllDayItemToolStripMenuItem.Click += new System.EventHandler(this.newAllDayItemToolStripMenuItem_Click);\n            //\n            // editItemToolStripMenuItem\n            //\n            this.editItemToolStripMenuItem.Name = \"editItemToolStripMenuItem\";\n            this.editItemToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.editItemToolStripMenuItem.Text = \"Edit Item\";\n            this.editItemToolStripMenuItem.Click += new System.EventHandler(this.editItemToolStripMenuItem_Click);\n            //\n            // deleteItemToolStripMenuItem\n            //\n            this.deleteItemToolStripMenuItem.Name = \"deleteItemToolStripMenuItem\";\n            this.deleteItemToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.deleteItemToolStripMenuItem.Text = \"Delete Item\";\n            this.deleteItemToolStripMenuItem.Click += new System.EventHandler(this.deleteItemToolStripMenuItem_Click);\n            //\n            // contextMenuStrip3\n            //\n            this.contextMenuStrip3.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.dayToolStripMenuItem,\n            this.workWeekToolStripMenuItem,\n            this.weekToolStripMenuItem,\n            this.monthToolStripMenuItem});\n            this.contextMenuStrip3.Name = \"contextMenuStrip3\";\n            this.contextMenuStrip3.Size = new System.Drawing.Size(180, 92);\n            //\n            // dayToolStripMenuItem\n            //\n            this.dayToolStripMenuItem.Name = \"dayToolStripMenuItem\";\n            this.dayToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.dayToolStripMenuItem.Text = \"Day\";\n            this.dayToolStripMenuItem.Click += new System.EventHandler(this.dayToolStripMenuItem_Click);\n            //\n            // workWeekToolStripMenuItem\n            //\n            this.workWeekToolStripMenuItem.Name = \"workWeekToolStripMenuItem\";\n            this.workWeekToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.workWeekToolStripMenuItem.Text = \"Work Week\";\n            this.workWeekToolStripMenuItem.Click += new System.EventHandler(this.workWeekToolStripMenuItem_Click);\n            //\n            // weekToolStripMenuItem\n            //\n            this.weekToolStripMenuItem.Name = \"weekToolStripMenuItem\";\n            this.weekToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.weekToolStripMenuItem.Text = \"Week\";\n            this.weekToolStripMenuItem.Click += new System.EventHandler(this.weekToolStripMenuItem_Click);\n            //\n            // monthToolStripMenuItem\n            //\n            this.monthToolStripMenuItem.Name = \"monthToolStripMenuItem\";\n            this.monthToolStripMenuItem.Size = new System.Drawing.Size(179, 22);\n            this.monthToolStripMenuItem.Text = \"Month\";\n            this.monthToolStripMenuItem.Click += new System.EventHandler(this.monthToolStripMenuItem_Click);\n            //\n            // contextMenuStrip4\n            //\n            this.contextMenuStrip4.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.appearanceToolStripMenuItem,\n            this.cultureToolStripMenuItem,\n            this.navigationPanelToolStripMenuItem,\n            this.saveOnCloseToolStripMenuItem,\n            this.weekNumbersToolStripMenuItem,\n            this.alertsToolStripMenuItem,\n            this.additionalPanelToolStripMenuItem,\n            this.testsToolStripMenuItem});\n            this.contextMenuStrip4.Name = \"contextMenuStrip4\";\n            this.contextMenuStrip4.Size = new System.Drawing.Size(180, 170);\n            //\n            // appearanceToolStripMenuItem\n            //\n            this.appearanceToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.changeToolStripMenuItem,\n            this.loadToolStripMenuItem,\n            this.saveToolStripMenuItem1});\n            this.appearanceToolStripMenuItem.Name = \"appearanceToolStripMenuItem\";\n            this.appearanceToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.appearanceToolStripMenuItem.Text = \"Appearance\";\n            //\n            // changeToolStripMenuItem\n            //\n            this.changeToolStripMenuItem.Name = \"changeToolStripMenuItem\";\n            this.changeToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.changeToolStripMenuItem.Text = \"Change\";\n            this.changeToolStripMenuItem.Click += new System.EventHandler(this.changeToolStripMenuItem_Click);\n            //\n            // loadToolStripMenuItem\n            //\n            this.loadToolStripMenuItem.Name = \"loadToolStripMenuItem\";\n            this.loadToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.loadToolStripMenuItem.Text = \"Load\";\n            this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);\n            //\n            // saveToolStripMenuItem1\n            //\n            this.saveToolStripMenuItem1.Name = \"saveToolStripMenuItem1\";\n            this.saveToolStripMenuItem1.Size = new System.Drawing.Size(164, 22);\n            this.saveToolStripMenuItem1.Text = \"Save\";\n            this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);\n            //\n            // cultureToolStripMenuItem\n            //\n            this.cultureToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.invariantToolStripMenuItem,\n            this.applicationToolStripMenuItem,\n            this.frIRToolStripMenuItem,\n            this.itITToolStripMenuItem,\n            this.enUSToolStripMenuItem,\n            this.deDEToolStripMenuItem});\n            this.cultureToolStripMenuItem.Name = \"cultureToolStripMenuItem\";\n            this.cultureToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.cultureToolStripMenuItem.Text = \"Culture\";\n            //\n            // invariantToolStripMenuItem\n            //\n            this.invariantToolStripMenuItem.Name = \"invariantToolStripMenuItem\";\n            this.invariantToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.invariantToolStripMenuItem.Text = \"Invariant\";\n            this.invariantToolStripMenuItem.Click += new System.EventHandler(this.invariantToolStripMenuItem_Click);\n            //\n            // applicationToolStripMenuItem\n            //\n            this.applicationToolStripMenuItem.Name = \"applicationToolStripMenuItem\";\n            this.applicationToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.applicationToolStripMenuItem.Text = \"Application\";\n            this.applicationToolStripMenuItem.Click += new System.EventHandler(this.applicationToolStripMenuItem_Click);\n            //\n            // frIRToolStripMenuItem\n            //\n            this.frIRToolStripMenuItem.Name = \"frIRToolStripMenuItem\";\n            this.frIRToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.frIRToolStripMenuItem.Text = \"fr-FR\";\n            this.frIRToolStripMenuItem.Click += new System.EventHandler(this.frIRToolStripMenuItem_Click);\n            //\n            // itITToolStripMenuItem\n            //\n            this.itITToolStripMenuItem.Name = \"itITToolStripMenuItem\";\n            this.itITToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.itITToolStripMenuItem.Text = \"it-IT\";\n            this.itITToolStripMenuItem.Click += new System.EventHandler(this.itITToolStripMenuItem_Click);\n            //\n            // enUSToolStripMenuItem\n            //\n            this.enUSToolStripMenuItem.Name = \"enUSToolStripMenuItem\";\n            this.enUSToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.enUSToolStripMenuItem.Text = \"en-US\";\n            this.enUSToolStripMenuItem.Click += new System.EventHandler(this.enUSToolStripMenuItem_Click);\n            //\n            // deDEToolStripMenuItem\n            //\n            this.deDEToolStripMenuItem.Name = \"deDEToolStripMenuItem\";\n            this.deDEToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.deDEToolStripMenuItem.Text = \"de-DE\";\n            this.deDEToolStripMenuItem.Click += new System.EventHandler(this.deDEToolStripMenuItem_Click);\n            //\n            // navigationPanelToolStripMenuItem\n            //\n            this.navigationPanelToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.hiddenToolStripMenuItem,\n            this.leftToolStripMenuItem,\n            this.rightToolStripMenuItem});\n            this.navigationPanelToolStripMenuItem.Name = \"navigationPanelToolStripMenuItem\";\n            this.navigationPanelToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.navigationPanelToolStripMenuItem.Text = \"Navigation Panel\";\n            //\n            // hiddenToolStripMenuItem\n            //\n            this.hiddenToolStripMenuItem.Name = \"hiddenToolStripMenuItem\";\n            this.hiddenToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.hiddenToolStripMenuItem.Text = \"Hidden\";\n            this.hiddenToolStripMenuItem.Click += new System.EventHandler(this.hiddenToolStripMenuItem_Click);\n            //\n            // leftToolStripMenuItem\n            //\n            this.leftToolStripMenuItem.Name = \"leftToolStripMenuItem\";\n            this.leftToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.leftToolStripMenuItem.Text = \"Left\";\n            this.leftToolStripMenuItem.Click += new System.EventHandler(this.leftToolStripMenuItem_Click);\n            //\n            // rightToolStripMenuItem\n            //\n            this.rightToolStripMenuItem.Name = \"rightToolStripMenuItem\";\n            this.rightToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.rightToolStripMenuItem.Text = \"Right\";\n            this.rightToolStripMenuItem.Click += new System.EventHandler(this.rightToolStripMenuItem_Click);\n            //\n            // saveOnCloseToolStripMenuItem\n            //\n            this.saveOnCloseToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {\n            this.doNotSaveToolStripMenuItem,\n            this.promptBeforSavingToolStripMenuItem,\n            this.saveWithoutPromptToolStripMenuItem});\n            this.saveOnCloseToolStripMenuItem.Name = \"saveOnCloseToolStripMenuItem\";\n            this.saveOnCloseToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.saveOnCloseToolStripMenuItem.Text = \"Save On Close\";\n            //\n            // doNotSaveToolStripMenuItem\n            //\n            this.doNotSaveToolStripMenuItem.Name = \"doNotSaveToolStripMenuItem\";\n            this.doNotSaveToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.doNotSaveToolStripMenuItem.Text = \"Do Not Save\";\n            this.doNotSaveToolStripMenuItem.Click += new System.EventHandler(this.doNotSaveToolStripMenuItem_Click);\n            //\n            // promptBeforSavingToolStripMenuItem\n            //\n            this.promptBeforSavingToolStripMenuItem.Name = \"promptBeforSavingToolStripMenuItem\";\n            this.promptBeforSavingToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.promptBeforSavingToolStripMenuItem.Text = \"Prompt Before Saving\";\n            this.promptBeforSavingToolStripMenuItem.Click += new System.EventHandler(this.promptBeforSavingToolStripMenuItem_Click);\n            //\n            // saveWithoutPromptToolStripMenuItem\n            //\n            this.saveWithoutPromptToolStripMenuItem.Name = \"saveWithoutPromptToolStripMenuItem\";\n            this.saveWithoutPromptToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.saveWithoutPromptToolStripMenuItem.Text = \"Save Without Prompt\";\n            this.saveWithoutPromptToolStripMenuItem.Click += new System.EventHandler(this.saveWithoutPromptToolStripMenuItem_Click);\n            //\n            // weekNumbersToolStripMenuItem\n            //\n            this.weekNumbersToolStripMenuItem.Name = \"weekNumbersToolStripMenuItem\";\n            this.weekNumbersToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.weekNumbersToolStripMenuItem.Text = \"Week Numbers\";\n            this.weekNumbersToolStripMenuItem.Click += new System.EventHandler(this.weekNumbersToolStripMenuItem_Click);\n            //\n            // alertsToolStripMenuItem\n            //\n            this.alertsToolStripMenuItem.Name = \"alertsToolStripMenuItem\";\n            this.alertsToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.alertsToolStripMenuItem.Text = \"Alerts\";\n            this.alertsToolStripMenuItem.Click += new System.EventHandler(this.alertsToolStripMenuItem_Click);\n            //\n            // additionalPanelToolStripMenuItem\n            //\n            this.additionalPanelToolStripMenuItem.Name = \"additionalPanelToolStripMenuItem\";\n            this.additionalPanelToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.additionalPanelToolStripMenuItem.Text = \"Additional Panel\";\n            this.additionalPanelToolStripMenuItem.Click += new System.EventHandler(this.additionalPanelToolStripMenuItem_Click);\n            //\n            // testsToolStripMenuItem\n            //\n            this.testsToolStripMenuItem.Name = \"testsToolStripMenuItem\";\n            this.testsToolStripMenuItem.Size = new System.Drawing.Size(164, 22);\n            this.testsToolStripMenuItem.Text = \"Test\";\n            this.testsToolStripMenuItem.Click += new System.EventHandler(this.testsToolStripMenuItem_Click);\n            //\n            // pictureBox2\n            //\n            this.pictureBox2.Location = new System.Drawing.Point(339, 3);\n            this.pictureBox2.Name = \"pictureBox2\";\n            this.pictureBox2.Size = new System.Drawing.Size(123, 56);\n            this.pictureBox2.TabIndex = 28;\n            this.pictureBox2.TabStop = false;\n            //\n            // Form1\n            //\n            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\n            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\n            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);\n            this.BackColor = System.Drawing.SystemColors.ButtonHighlight;\n            this.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226)))));\n            this.BorderThickness = 2;\n            this.CaptionFont = new System.Drawing.Font(\"Segoe UI\", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));\n            this.CaptionForeColor = Color.White;\n            this.MetroColor = Color.Transparent;\n            this.ClientSize = new System.Drawing.Size(996, 586);\n            this.Controls.Add(this.pictureBox1);\n            this.Controls.Add(this.panel2);\n            this.Controls.Add(this.panel1);\n            this.MinimumSize = new System.Drawing.Size(900, 590);\n            this.Name = \"Form1\";\n            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n            this.Text = \"Scheduler\";\n            this.panel1.ResumeLayout(false);\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv4)).EndInit();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv3)).EndInit();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv1)).EndInit();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv2)).EndInit();\n            this.panel2.ResumeLayout(false);\n            this.panel2.PerformLayout();\n            ((System.ComponentModel.ISupportInitialize)(this.comboBoxAdv5)).EndInit();\n            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();\n            this.contextMenuStrip1.ResumeLayout(false);\n            this.contextMenuStrip2.ResumeLayout(false);\n            this.contextMenuStrip3.ResumeLayout(false);\n            this.contextMenuStrip4.ResumeLayout(false);\n            ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();\n            this.ResumeLayout(false);\n        }\n\n        #endregion\n    }\n}\n"
    },
    {
      "target": "src/components/scheduler-scheduler-demo/scheduler.cs",
      "content": "﻿using Syncfusion.GridHelperClasses;\nusing Syncfusion.Schedule;\nusing Syncfusion.Telemetry;\nusing Syncfusion.Windows.Forms;\nusing Syncfusion.Windows.Forms.Schedule;\nusing System;\nusing System.Collections;\nusing System.Collections.Specialized;\nusing System.ComponentModel;\nusing System.Drawing;\nusing System.Globalization;\nusing System.IO;\nusing System.Windows.Forms;\n\nnamespace SchedulerDemo\n{\n    /// <summary>\n    /// Demonstrates the ScheduleControl: the appointments are shown in the day,\n    /// work week, week and month views and the sample offers a menu to change\n    /// the data source, the appearance, the culture and the navigation panel.\n    /// </summary>\n    public partial class Form1 : MetroForm\n    {\n        #region API Definition\n\n        private Syncfusion.Windows.Forms.Schedule.ScheduleControl scheduleControl1;\n        private Syncfusion.Windows.Forms.ButtonAdv buttonAdv6;\n        private Label label1;\n        private Panel panel1;\n        private Syncfusion.Windows.Forms.Tools.ComboBoxAdv comboBoxAdv2;\n        private Syncfusion.Windows.Forms.Tools.ComboBoxAdv comboBoxAdv4;\n        private Syncfusion.Windows.Forms.Tools.ComboBoxAdv comboBoxAdv3;\n        private Syncfusion.Windows.Forms.Tools.ComboBoxAdv comboBoxAdv1;\n        private Panel panel2;\n        private Syncfusion.Windows.Forms.Tools.ComboBoxAdv comboBoxAdv5;\n        private PictureBox pictureBox1;\n        private ContextMenuStrip contextMenuStrip1;\n        private ToolStripMenuItem newToolStripMenuItem;\n        private ToolStripMenuItem openToolStripMenuItem;\n        private ToolStripMenuItem saveCalendarToolStripMenuItem;\n        private ToolStripMenuItem saveToolStripMenuItem;\n        private ToolStripMenuItem mergeCalendarAsToolStripMenuItem;\n        private ToolStripMenuItem randomDataToolStripMenuItem;\n        private ToolStripMenuItem exitToolStripMenuItem;\n        private ContextMenuStrip contextMenuStrip2;\n        private ToolStripMenuItem newItemToolStripMenuItem;\n        private ToolStripMenuItem newAllDayItemToolStripMenuItem;\n        private ToolStripMenuItem editItemToolStripMenuItem;\n        private ToolStripMenuItem deleteItemToolStripMenuItem;\n        private ContextMenuStrip contextMenuStrip3;\n        private ToolStripMenuItem dayToolStripMenuItem;\n        private ToolStripMenuItem workWeekToolStripMenuItem;\n        private ToolStripMenuItem weekToolStripMenuItem;\n        private ToolStripMenuItem monthToolStripMenuItem;\n        private ContextMenuStrip contextMenuStrip4;\n        private ToolStripMenuItem appearanceToolStripMenuItem;\n        private ToolStripMenuItem changeToolStripMenuItem;\n        private ToolStripMenuItem loadToolStripMenuItem;\n        private ToolStripMenuItem saveToolStripMenuItem1;\n        private ToolStripMenuItem cultureToolStripMenuItem;\n        private ToolStripMenuItem invariantToolStripMenuItem;\n        private ToolStripMenuItem applicationToolStripMenuItem;\n        private ToolStripMenuItem frIRToolStripMenuItem;\n        private ToolStripMenuItem itITToolStripMenuItem;\n        private ToolStripMenuItem enUSToolStripMenuItem;\n        private ToolStripMenuItem deDEToolStripMenuItem;\n        private ToolStripMenuItem navigationPanelToolStripMenuItem;\n        private ToolStripMenuItem hiddenToolStripMenuItem;\n        private ToolStripMenuItem leftToolStripMenuItem;\n        private ToolStripMenuItem rightToolStripMenuItem;\n        private ToolStripMenuItem saveOnCloseToolStripMenuItem;\n        private ToolStripMenuItem doNotSaveToolStripMenuItem;\n        private ToolStripMenuItem promptBeforSavingToolStripMenuItem;\n        private ToolStripMenuItem saveWithoutPromptToolStripMenuItem;\n        private ToolStripMenuItem weekNumbersToolStripMenuItem;\n        private ToolStripMenuItem alertsToolStripMenuItem;\n        private ToolStripMenuItem additionalPanelToolStripMenuItem;\n        private ToolStripMenuItem testsToolStripMenuItem;\n        private PictureBox pictureBox2;\n\n        /// <summary>\n        /// The panel that is added to the navigation panel when it is requested.\n        /// </summary>\n        private Panel p = null;\n\n        #endregion\n\n        #region Constructor\n\n        /// <summary>\n        /// Initializes a new instance of the <see cref=\"Form1\"/> class.\n        /// </summary>\n        public Form1()\n        {\n            InitializeComponent();\n\n            string menuImage = SchedulerDemoDataSource.GetMenuImagePath();\n            if (menuImage != null)\n            {\n                pictureBox1.Image = new Bitmap(menuImage);\n            }\n\n            pictureBox1.MouseDown += new MouseEventHandler(pictureBox1_MouseDown);\n            pictureBox1.MouseMove += new MouseEventHandler(pictureBox1_MouseMove);\n\n            string climateImage = SchedulerDemoDataSource.GetClimateImagePath();\n            if (climateImage != null)\n            {\n                pictureBox2.Image = new Bitmap(climateImage);\n            }\n\n            SimpleScheduleDataProvider scheduleProvider;\n\n            string fileName = SchedulerDemoDataSource.DefaultScheduleFileName;\n            if (FindFile(ref fileName))\n            {\n                scheduleProvider = SimpleScheduleDataProvider.LoadBinary(fileName);\n                scheduleProvider.FileName = fileName;\n            }\n            else\n            {\n                scheduleProvider = new SimpleScheduleDataProvider();\n                scheduleProvider.MasterList = new SimpleScheduleAppointmentList();\n                scheduleProvider.FileName = SchedulerDemoDataSource.DefaultScheduleFileName;\n            }\n\n            this.scheduleControl1.ScheduleType = ScheduleViewType.Month;\n            scheduleControl1.DataSource = scheduleProvider;\n            scheduleControl1.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro;\n\n            SimpleScheduleDataProvider dataProvider = new SimpleScheduleDataProvider();\n            dataProvider.MasterList = SimpleScheduleDataProvider.InitializeRandomData();\n            scheduleControl1.DataSource = dataProvider;\n\n            foreach (ScheduleAppointment sc in dataProvider.MasterList)\n            {\n                sc.ReminderText = dataProvider.GetReminders()[sc.ReminderValue].DisplayMember;\n            }\n\n            StringCollection dataSourceNames = new StringCollection();\n            foreach (string name in SchedulerDemoDataSource.DataSourceNames)\n            {\n                dataSourceNames.Add(name);\n            }\n\n            comboBoxAdv5.DataSource = dataSourceNames;\n\n            this.scheduleControl1.ScheduleAppointmentClick += new ScheduleAppointmentClickEventHandler(scheduleControl1_ScheduleAppointmentClick);\n            this.scheduleControl1.Appearance.EnableAdvancedToolTip = true;\n\n            try\n            {\n                string iconFile = SchedulerDemoDataSource.GetAssetPath(Path.Combine(\"Icon\", \"Suite.ico\"));\n                if (iconFile != null)\n                {\n                    this.Icon = new System.Drawing.Icon(iconFile);\n                }\n            }\n            catch\n            {\n                // The icon is optional, the form still works without it.\n            }\n\n            ToolTip();\n\n            this.pictureBox1.MouseHover += new EventHandler(pictureBox1_MouseHover);\n            this.pictureBox1.MouseLeave += new EventHandler(pictureBox1_MouseLeave);\n\n            this.scheduleControl1.NavigationPanelFillWithCalendar = true;\n            this.scheduleControl1.NavigationPanel.Width = (int)Syncfusion.Windows.Forms.DpiAware.LogicalToDeviceUnits(180);\n            this.scheduleControl1.Calendar.CalenderGrid.DpiAware = true;\n            this.scheduleControl1.Calendar.CalenderGrid.DefaultRowHeight = (int)Syncfusion.Windows.Forms.DpiAware.LogicalToDeviceUnits(15);\n        }\n\n        #endregion\n\n        #region ToolTip\n\n        /// <summary>\n        /// Shows the advanced tool tip that carries the weather information.\n        /// </summary>\n        private void ToolTip()\n        {\n            ToolTipControl control = new ToolTipControl();\n\n            string userToolImage = SchedulerDemoDataSource.GetUserToolImagePath();\n            if (userToolImage != null)\n            {\n                control.SetToolTipImage(userToolImage);\n            }\n\n            AdvancedToolTip userToolTip = new AdvancedToolTip(control, pictureBox2);\n            userToolTip.AnimationDuration = 0;\n            userToolTip.ShowingAnimation = ToolTipAnimations.RightToLeft | ToolTipAnimations.Blend;\n            userToolTip.ArrowHeadDirection = ArrowHeadDirection.Top;\n            userToolTip.DropShadowEnabled = false;\n        }\n\n        #endregion\n\n        #region Events\n\n        /// <summary>\n        /// Catches the clicks on the schedule control.\n        /// </summary>\n        private void scheduleControl1_ScheduleAppointmentClick(object sender, ScheduleAppointmentClickEventArgs e)\n        {\n            Console.WriteLine(\"scheduleControl1_ScheduleAppointmentClick: {0} {1}\", e.ClickType, e.ClickDateTime);\n        }\n\n        /// <summary>\n        /// Creates a new, empty calendar.\n        /// </summary>\n        private void newToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            CheckAndSaveIfNeeded(true);\n\n            SimpleScheduleDataProvider scheduleProvider = new SimpleScheduleDataProvider();\n            scheduleProvider.MasterList = new SimpleScheduleAppointmentList();\n            scheduleProvider.FileName = \"newScheduleFile.schedule\";\n            scheduleProvider.IsDirty = true;\n            this.scheduleControl1.DataSource = scheduleProvider;\n        }\n\n        private void pictureBox1_MouseMove(object sender, MouseEventArgs e)\n        {\n        }\n\n        private void pictureBox1_MouseLeave(object sender, EventArgs e)\n        {\n            this.Cursor = Cursors.Arrow;\n        }\n\n        private void pictureBox1_MouseHover(object sender, EventArgs e)\n        {\n            this.Cursor = Cursors.Hand;\n        }\n\n        /// <summary>\n        /// Shows the menu that belongs to the menu item that was clicked.\n        /// </summary>\n        private void pictureBox1_MouseDown(object sender, MouseEventArgs e)\n        {\n            if (e.Location.X >= 218 && e.Location.X <= 236 && e.Location.Y >= 22 && e.Location.Y <= 32)\n            {\n                Point pt = pictureBox1.PointToScreen(e.Location);\n                pt.X -= 50;\n                pt.Y += 7;\n                this.contextMenuStrip1.Show(pt);\n            }\n\n            if (e.Location.X >= 262 && e.Location.X <= 286 && e.Location.Y >= 22 && e.Location.Y <= 32)\n            {\n                Point pt = pictureBox1.PointToScreen(e.Location);\n                pt.X -= 50;\n                pt.Y += 7;\n                this.contextMenuStrip2.Show(pt);\n                this.SetDisplayRectLocation(247, 17);\n            }\n\n            if (e.Location.X >= 308 && e.Location.X <= 337 && e.Location.Y >= 22 && e.Location.Y <= 32)\n            {\n                Point pt = pictureBox1.PointToScreen(e.Location);\n                pt.X -= 50;\n                pt.Y += 7;\n                this.contextMenuStrip3.Show(pt);\n            }\n\n            if (e.Location.X >= 358 && e.Location.X <= 408 && e.Location.Y >= 22 && e.Location.Y <= 32)\n            {\n                Point pt = pictureBox1.PointToScreen(e.Location);\n                pt.X -= 50;\n                pt.Y += 7;\n                this.contextMenuStrip4.Show(pt);\n            }\n        }\n\n        /// <summary>\n        /// Opens a schedule file that was saved earlier.\n        /// </summary>\n        private void openToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            CheckAndSaveIfNeeded(true);\n\n            OpenFileDialog dlg = new OpenFileDialog();\n            dlg.Title = \"Open Schedule file\";\n            dlg.InitialDirectory = Environment.CurrentDirectory;\n            dlg.Filter = \"Schedule files (*.schedule)|*.schedule|All files (*.*)|*.*\";\n\n            if (dlg.ShowDialog() == DialogResult.OK)\n            {\n                try\n                {\n                    this.scheduleControl1.DataSource = SimpleScheduleDataProvider.LoadBinary(dlg.FileName);\n                    ((SimpleScheduleDataProvider)this.scheduleControl1.DataSource).FileName = dlg.FileName;\n                }\n                catch (Exception ex)\n                {\n                    MessageBox.Show(ex.Message);\n                }\n            }\n        }\n\n        /// <summary>\n        /// Saves the calendar to the file it is bound to.\n        /// </summary>\n        private void saveCalendarToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            if (((SimpleScheduleDataProvider)this.scheduleControl1.DataSource).FileName == \"newScheduleFile.schedule\")\n            {\n                this.saveToolStripMenuItem.PerformClick();\n            }\n            else\n            {\n                CheckAndSaveIfNeeded(false);\n            }\n        }\n\n        /// <summary>\n        /// Saves the calendar to a new file.\n        /// </summary>\n        private void saveToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            SaveFileDialog saveFile = new SaveFileDialog();\n            saveFile.DefaultExt = \"*.schedule\";\n            saveFile.FileName = ((SimpleScheduleDataProvider)this.scheduleControl1.DataSource).FileName;\n            saveFile.Filter = \"Schedule Files|*.schedule\";\n\n            if (saveFile.ShowDialog() == DialogResult.OK)\n            {\n                try\n                {\n                    ((SimpleScheduleDataProvider)this.scheduleControl1.DataSource).SaveBinary(saveFile.FileName);\n                }\n                catch (Exception ex)\n                {\n                    MessageBox.Show(ex.Message);\n                }\n            }\n        }\n\n        /// <summary>\n        /// Merges the appointments of another schedule into the current one.\n        /// </summary>\n        private void mergeCalendarAsToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            OpenFileDialog dlg = new OpenFileDialog();\n            dlg.Title = \"Merge Schedule file\";\n            dlg.InitialDirectory = Environment.CurrentDirectory;\n            dlg.Filter = \"Schedule files (*.schedule)|*.schedule|All files (*.*)|*.*\";\n\n            if (dlg.ShowDialog() == DialogResult.OK)\n            {\n                try\n                {\n                    SimpleScheduleDataProvider mergeProvider = SimpleScheduleDataProvider.LoadBinary(dlg.FileName);\n                    SimpleScheduleDataProvider dataProvider = this.scheduleControl1.DataSource as SimpleScheduleDataProvider;\n                    this.scheduleControl1.Calendar.BeginUpdate();\n\n                    foreach (SimpleScheduleAppointment item in mergeProvider.MasterList)\n                    {\n                        dataProvider.AddItem(item);\n                    }\n\n                    dataProvider.MasterList.SortStartTime();\n                    this.scheduleControl1.Calendar.EndUpdate();\n                    this.scheduleControl1.ResetProvider(this.scheduleControl1.ScheduleType);\n                }\n                catch (Exception ex)\n                {\n                    MessageBox.Show(ex.Message);\n                }\n            }\n        }\n\n        /// <summary>\n        /// Fills the calendar with the generated sample data.\n        /// </summary>\n        private void randomDataToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            CheckAndSaveIfNeeded(true);\n\n            SimpleScheduleDataProvider dataProvider = new SimpleScheduleDataProvider();\n            dataProvider.MasterList = SimpleScheduleDataProvider.InitializeRandomData();\n            dataProvider.FileName = \"random.schedule\";\n\n            this.scheduleControl1.DataSource = dataProvider;\n        }\n\n        /// <summary>\n        /// Closes the application.\n        /// </summary>\n        private void exitToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.Close();\n        }\n\n        /// <summary>\n        /// Loads the data source that is selected in the combo box.\n        /// </summary>\n        private void buttonAdv6_Click(object sender, EventArgs e)\n        {\n            if (comboBoxAdv5.SelectedIndex == 0)\n            {\n                SimpleScheduleDataProvider dataProvider = new SimpleScheduleDataProvider();\n                dataProvider.MasterList = SimpleScheduleDataProvider.InitializeRandomData();\n                dataProvider.FileName = SchedulerDemoDataSource.DefaultScheduleFileName;\n\n                this.scheduleControl1.ScheduleType = ScheduleViewType.Month;\n                scheduleControl1.DataSource = dataProvider;\n                scheduleControl1.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro;\n            }\n            else if (comboBoxAdv5.SelectedIndex == 1)\n            {\n                string databasePath = SchedulerDemoDataSource.GetDatabasePath();\n\n                if (databasePath != null)\n                {\n                    MDB_ScheduleDataProvider scheduleProvider = new MDB_ScheduleDataProvider(databasePath);\n\n                    SimpleScheduleDataProvider dataProvider = new SimpleScheduleDataProvider();\n                    dataProvider.MasterList = SimpleScheduleDataProvider.InitializeRandomDataSource();\n                    dataProvider.FileName = SchedulerDemoDataSource.DatabaseFileName;\n\n                    this.scheduleControl1.ScheduleType = ScheduleViewType.Month;\n                    scheduleControl1.DataSource = dataProvider;\n                    scheduleControl1.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro;\n                }\n            }\n        }\n\n        /// <summary>\n        /// Adds a new appointment to the schedule.\n        /// </summary>\n        private void newItemToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.PerformNewItemClick();\n        }\n\n        /// <summary>\n        /// Adds a new all day appointment to the schedule.\n        /// </summary>\n        private void newAllDayItemToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.PerformNewAllDayItemClick();\n        }\n\n        /// <summary>\n        /// Edits the appointment that was clicked.\n        /// </summary>\n        private void editItemToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.PerformEditItemClick();\n        }\n\n        /// <summary>\n        /// Deletes the appointment that was clicked.\n        /// </summary>\n        private void deleteItemToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.PerformDeleteItemClick();\n        }\n\n        /// <summary>\n        /// Switches to the day view and turns the alerts on.\n        /// </summary>\n        private void testsToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.SwitchToScheduleViewTypeDay(DateTime.Now);\n            this.scheduleControl1.EnableAlerts = true;\n        }\n\n        /// <summary>\n        /// Switches the schedule to the day view.\n        /// </summary>\n        private void dayToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            SetCheckValues(sender as ToolStripMenuItem);\n\n            if (this.scheduleControl1.ScheduleType != ScheduleViewType.Day)\n            {\n                this.scheduleControl1.PerformSwitchToScheduleViewTypeClick(ScheduleViewType.Day);\n            }\n        }\n\n        /// <summary>\n        /// Checks the supplied item and unchecks the other items of the menu.\n        /// </summary>\n        private void SetCheckValues(ToolStripMenuItem item)\n        {\n            item.Checked = true;\n\n            ContextMenuStrip contextMenuStrip = item.Owner as ContextMenuStrip;\n            foreach (ToolStripMenuItem menuItem in contextMenuStrip.Items)\n            {\n                if (item != menuItem)\n                {\n                    menuItem.Checked = false;\n                }\n            }\n        }\n\n        /// <summary>\n        /// Switches the schedule to the work week view.\n        /// </summary>\n        private void workWeekToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            SetCheckValues(sender as ToolStripMenuItem);\n\n            if (this.scheduleControl1.ScheduleType != ScheduleViewType.WorkWeek)\n            {\n                this.scheduleControl1.PerformSwitchToScheduleViewTypeClick(ScheduleViewType.WorkWeek);\n            }\n        }\n\n        /// <summary>\n        /// Switches the schedule to the week view.\n        /// </summary>\n        private void weekToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            SetCheckValues(sender as ToolStripMenuItem);\n\n            if (this.scheduleControl1.ScheduleType != ScheduleViewType.Week)\n            {\n                this.scheduleControl1.PerformSwitchToScheduleViewTypeClick(ScheduleViewType.Week);\n            }\n        }\n\n        /// <summary>\n        /// Switches the schedule to the month view.\n        /// </summary>\n        private void monthToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            SetCheckValues(sender as ToolStripMenuItem);\n\n            if (this.scheduleControl1.ScheduleType != ScheduleViewType.Month)\n            {\n                this.scheduleControl1.PerformSwitchToScheduleViewTypeClick(ScheduleViewType.Month);\n            }\n        }\n\n        /// <summary>\n        /// Opens the property grid that edits the appearance of the schedule.\n        /// </summary>\n        private void changeToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            if (propertyForm == null)\n            {\n                propertyForm = new PropertyGridForm();\n                propertyForm.Closing += new CancelEventHandler(propertyForm_Closing);\n                propertyForm.AppearancePropertyGrid1.SelectedObject = this.scheduleControl1.Appearance;\n                propertyForm.AppearancePropertyGrid1.PropertyValueChanged += new PropertyValueChangedEventHandler(AppearancePropertyGrid1_PropertyValueChanged);\n            }\n\n            if (!propertyForm.Visible)\n            {\n                propertyForm.Show();\n            }\n        }\n\n        /// <summary>\n        /// Saves the current appearance to a file.\n        /// </summary>\n        private void loadToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            SaveFileDialog saveFile = new SaveFileDialog();\n            saveFile.DefaultExt = \"*.appearance\";\n            saveFile.FileName = \"\";\n            saveFile.Filter = \"Appearance Files|*.appearance\";\n\n            if (saveFile.ShowDialog() == DialogResult.OK)\n            {\n                try\n                {\n                    this.scheduleControl1.Appearance.SaveBinary(saveFile.FileName);\n                }\n                catch (Exception ex)\n                {\n                    MessageBox.Show(ex.Message);\n                }\n            }\n        }\n\n        /// <summary>\n        /// Loads an appearance from a file.\n        /// </summary>\n        private void saveToolStripMenuItem1_Click(object sender, EventArgs e)\n        {\n            OpenFileDialog dlg = new OpenFileDialog();\n            dlg.Title = \"Open Appearance file\";\n            dlg.InitialDirectory = Environment.CurrentDirectory;\n            dlg.Filter = \"Appearance files (*.appearance)|*.appearance\";\n\n            if (dlg.ShowDialog() == DialogResult.OK)\n            {\n                try\n                {\n                    ScheduleAppearance appearance = ScheduleAppearance.LoadBinary(dlg.FileName);\n                    appearance.AttachSchedule(this.scheduleControl1);\n                }\n                catch (Exception ex)\n                {\n                    MessageBox.Show(ex.Message);\n                }\n            }\n        }\n\n        /// <summary>\n        /// Uses the invariant culture for the schedule.\n        /// </summary>\n        private void invariantToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.Culture = CultureInfo.InvariantCulture;\n        }\n\n        /// <summary>\n        /// Uses the culture of the application for the schedule.\n        /// </summary>\n        private void applicationToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.Culture = Application.CurrentCulture;\n        }\n\n        /// <summary>\n        /// Uses the French culture for the schedule.\n        /// </summary>\n        private void frIRToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.Culture = CultureInfo.CreateSpecificCulture(\"fr-FR\");\n        }\n\n        /// <summary>\n        /// Uses the Italian culture for the schedule.\n        /// </summary>\n        private void itITToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.Culture = CultureInfo.CreateSpecificCulture(\"it-IT\");\n        }\n\n        /// <summary>\n        /// Uses the American English culture for the schedule.\n        /// </summary>\n        private void enUSToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.Culture = CultureInfo.CreateSpecificCulture(\"en-US\");\n        }\n\n        /// <summary>\n        /// Uses the German culture for the schedule.\n        /// </summary>\n        private void deDEToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.Culture = CultureInfo.CreateSpecificCulture(\"de-DE\");\n        }\n\n        /// <summary>\n        /// Turns the alerts of the schedule on or off.\n        /// </summary>\n        private void alertsToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.EnableAlerts = !this.scheduleControl1.EnableAlerts;\n            this.alertsToolStripMenuItem.Checked = this.scheduleControl1.EnableAlerts;\n        }\n\n        /// <summary>\n        /// Saves the schedule without asking the user.\n        /// </summary>\n        private void doNotSaveToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.DataSource.SaveOnCloseBehaviorAction = SaveOnCloseBehavior.DoNotSave;\n        }\n\n        /// <summary>\n        /// Asks the user before the schedule is saved.\n        /// </summary>\n        private void promptBeforSavingToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.DataSource.SaveOnCloseBehaviorAction = SaveOnCloseBehavior.PromptBeforeSave;\n        }\n\n        /// <summary>\n        /// Saves the schedule without asking the user.\n        /// </summary>\n        private void saveWithoutPromptToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.DataSource.SaveOnCloseBehaviorAction = SaveOnCloseBehavior.SaveWithoutPrompt;\n        }\n\n        /// <summary>\n        /// Hides the navigation panel.\n        /// </summary>\n        private void hiddenToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.SetNavigationPanelPosition(CalendarNavigationPanelPosition.Hidden);\n        }\n\n        /// <summary>\n        /// Moves the navigation panel to the left.\n        /// </summary>\n        private void leftToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.SetNavigationPanelPosition(CalendarNavigationPanelPosition.Left);\n        }\n\n        /// <summary>\n        /// Moves the navigation panel to the right.\n        /// </summary>\n        private void rightToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.SetNavigationPanelPosition(CalendarNavigationPanelPosition.Right);\n        }\n\n        /// <summary>\n        /// Shows or hides the week numbers of the schedule.\n        /// </summary>\n        private void weekNumbersToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.scheduleControl1.Calendar.ShowWeekNumbers = !this.scheduleControl1.Calendar.ShowWeekNumbers;\n        }\n\n        /// <summary>\n        /// Adds or removes the additional panel of the navigation panel.\n        /// </summary>\n        private void additionalPanelToolStripMenuItem_Click(object sender, EventArgs e)\n        {\n            this.additionalPanelToolStripMenuItem.Checked = !this.additionalPanelToolStripMenuItem.Checked;\n\n            if (this.additionalPanelToolStripMenuItem.Checked)\n            {\n                p = new Panel();\n                p.BackColor = Color.Blue;\n                p.Dock = DockStyle.Fill;\n                this.scheduleControl1.NavigationPanel.Controls.Add(p);\n            }\n            else\n            {\n                this.scheduleControl1.NavigationPanel.Controls.Remove(p);\n\n                if (p != null)\n                {\n                    p.Dispose();\n                    p = null;\n                }\n            }\n        }\n\n        #endregion\n\n        #region Utility methods\n\n        /// <summary>\n        /// Commits the changes of the schedule when the user asks for it.\n        /// </summary>\n        private void CheckAndSaveIfNeeded(bool prompt)\n        {\n            SimpleScheduleDataProvider provider = this.scheduleControl1.DataSource as SimpleScheduleDataProvider;\n            if (provider == null)\n            {\n                return;\n            }\n\n            if (provider.FileName == null)\n            {\n                provider.FileName = SchedulerDemoDataSource.DefaultScheduleFileName;\n            }\n\n            if (this.scheduleControl1.DataSource.IsDirty &&\n                (!prompt || MessageBox.Show(\"Save changes?\", this.Name, MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes))\n            {\n                this.scheduleControl1.DataSource.CommitChanges();\n            }\n        }\n\n        #endregion\n\n        #region Appearance\n\n        PropertyGridForm propertyForm = null;\n\n        /// <summary>\n        /// Hides the property grid instead of closing it.\n        /// </summary>\n        private void propertyForm_Closing(object sender, CancelEventArgs e)\n        {\n            propertyForm.Hide();\n            e.Cancel = true;\n        }\n\n        /// <summary>\n        /// Applies the edited appearance property to the schedule.\n        /// </summary>\n        private void AppearancePropertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)\n        {\n            e.ChangedItem.PropertyDescriptor.SetValue(this.scheduleControl1.Appearance, e.ChangedItem.Value);\n            this.scheduleControl1.Refresh();\n        }\n\n        #endregion\n\n        #region Helper\n\n        /// <summary>\n        /// Looks for the supplied file in the folders above the working directory.\n        /// </summary>\n        private bool FindFile(ref string fileName)\n        {\n            int attempt = 0;\n            while (attempt < 4 && !File.Exists(fileName))\n            {\n                fileName = \"..\\\\\" + fileName;\n                attempt++;\n            }\n\n            return File.Exists(fileName);\n        }\n\n        /// <summary>\n        /// Closes the property grid when the form is closed.\n        /// </summary>\n        protected override void OnClosing(CancelEventArgs e)\n        {\n            SimpleScheduleDataProvider provider = this.scheduleControl1.DataSource as SimpleScheduleDataProvider;\n            if (provider != null && provider.FileName == null)\n            {\n                provider.FileName = SchedulerDemoDataSource.DefaultScheduleFileName;\n            }\n\n            if (this.propertyForm != null)\n            {\n                this.propertyForm.Hide();\n                propertyForm.AppearancePropertyGrid1.PropertyValueChanged -= new PropertyValueChangedEventHandler(AppearancePropertyGrid1_PropertyValueChanged);\n                propertyForm.Closing -= new CancelEventHandler(propertyForm_Closing);\n                propertyForm.Close();\n            }\n\n            base.OnClosing(e);\n        }\n\n        #endregion\n    }\n}\n"
    }
  ]
}