-
Notifications
You must be signed in to change notification settings - Fork 2
/
Form1.cs
25 lines (21 loc) · 1.01 KB
/
Form1.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
using System;
using System.Windows.Forms;
namespace SchedulerMappedLabels {
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e) {
// TODO: This line of code loads data into the 'carsDBDataSet.CarScheduling' table. You can move, or remove it, as needed.
this.carSchedulingTableAdapter.Fill(this.carsDBDataSet.CarScheduling);
// TODO: This line of code loads data into the 'carsDBDataSet.Labels' table. You can move, or remove it, as needed.
this.labelsTableAdapter.Fill(this.carsDBDataSet.Labels);
schedulerControl1.PopulateLabelsStorage();
if (schedulerControl1.Storage.Appointments.Count > 0) {
DateTime start = schedulerControl1.Storage.Appointments[0].Start;
schedulerControl1.Start = start.Date;
schedulerControl1.DayView.TopRowTime = start.TimeOfDay;
}
}
}
}