コード例 #1
0
        protected void Page_Init(object sender, EventArgs e)
        {
            Pilot.GeneratePilots();
            ASPxGridView1.DataSource = Pilot.pilots;
            ASPxGridView1.DataBind();
            ASPxScheduler1.Start = DateTime.Today;
            ASPxScheduler1.Storage.Appointments.Labels.Clear();
            ASPxScheduler1.Storage.Appointments.Labels.Add("Confirmed", "Confirmed", "MenuCaptionConfirmed", System.Drawing.Color.Green);
            ASPxScheduler1.Storage.Appointments.Labels.Add("Pending", "Pending", "MenuCaptionPending", System.Drawing.Color.Red);

            ASPxScheduler1.Storage.Appointments.Statuses.Clear();
            //ASPxScheduler1.Storage.Appointments.Statuses.Add("Confirmed", AppointmentStatusType.Custom, "Confirmed", "MenuCaptionConfirmed", System.Drawing.Color.Yellow);
            //ASPxScheduler1.Storage.Appointments.Statuses.Add("Pending", AppointmentStatusType.Custom, "Pending", "MenuCaptionPending", System.Drawing.Color.Blue);

            PrepareAppointmentDialog();
        }