Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144385 | May 3,2019 01:28 PM UTC | May 7,2019 09:40 AM UTC | WinForms | 4 |
![]() |
Tags: ScheduleControl |
SimpleScheduleDataProvider.cs
private void Form1_Load(object sender, EventArgs e)
{
SimpleScheduleDataProvider data = new SimpleScheduleDataProvider();
data.MasterList = new SimpleScheduleAppointmentList();
//TO populate the data for master list.
data.MasterList = SimpleScheduleDataProvider.InitializeRandomData();
data.FileName = "default.schedule";
this.scheduleControl1.ScheduleType = ScheduleViewType.Month;
this.scheduleControl1.DataSource = data;
} |
private void Form1_Load(object sender, EventArgs e)
{
SimpleScheduleDataProvider data = new SimpleScheduleDataProvider();
data.MasterList = new SimpleScheduleAppointmentList();
//TO populate the data for master list.
data.MasterList = SimpleScheduleDataProvider.InitializeRandomData();
data.FileName = "default.schedule";
this.scheduleControl1.ScheduleType = ScheduleViewType.Month;
this.scheduleControl1.DataSource = data;
this.scheduleControl1.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
// And also you can able to set theme using below code
//this.scheduleControl1.GetScheduleHost().Schedule.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
}
private void button1_Click(object sender, EventArgs e)
{
this.scheduleControl1.Appearance.VisualStyle = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.