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;
}
|