This repository has been archived by the owner on Sep 11, 2023. It is now read-only.
/
Form1.vb
68 lines (55 loc) · 2.91 KB
/
Form1.vb
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Linq
Imports System.Text
Imports System.Windows.Forms
Imports DevExpress.XtraBars
Imports DevExpress.XtraBars.Ribbon
Imports DevExpress.XtraBars.Helpers
Imports DevExpress.Skins
Imports DevExpress.LookAndFeel
Imports DevExpress.UserSkins
Imports DevExpress.XtraScheduler
Namespace SchedulerGettingStarted
Partial Public Class Form1
Inherits RibbonForm
Public Sub New()
InitializeComponent()
InitSkinGallery()
schedulerControl.Start = Date.Now
schedulerControl.WorkWeekView.TimeIndicatorDisplayOptions.Visibility = TimeIndicatorVisibility.CurrentDate
schedulerControl.WorkWeekView.TimeIndicatorDisplayOptions.ShowOverAppointment = True
End Sub
Private Sub InitSkinGallery()
SkinHelper.InitSkinGallery(rgbiSkins, True)
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
' TODO: This line of code loads data into the 'schedulerTestDataSet.Resources' table. You can move, or remove it, as needed.
Me.resourcesTableAdapter.Fill(Me.schedulerTestDataSet.Resources)
' TODO: This line of code loads data into the 'schedulerTestDataSet.Appointments' table. You can move, or remove it, as needed.
Me.appointmentsTableAdapter.Fill(Me.schedulerTestDataSet.Appointments)
End Sub
Private Sub OnAppointmentChangedInsertedDeleted(ByVal sender As Object, ByVal e As PersistentObjectsEventArgs) Handles schedulerStorage.AppointmentsInserted, schedulerStorage.AppointmentsChanged, schedulerStorage.AppointmentsDeleted
appointmentsTableAdapter.Update(schedulerTestDataSet)
schedulerTestDataSet.AcceptChanges()
End Sub
Private Sub schedulerControl_EditAppointmentFormShowing(ByVal sender As Object, ByVal e As AppointmentFormEventArgs)
Dim scheduler As DevExpress.XtraScheduler.SchedulerControl = (DirectCast(sender, DevExpress.XtraScheduler.SchedulerControl))
End Sub
Private Sub schedulerControl_EditAppointmentFormShowing_1(ByVal sender As Object, ByVal e As AppointmentFormEventArgs)
End Sub
Private Sub schedulerControl_EditAppointmentFormShowing_2(ByVal sender As Object, ByVal e As AppointmentFormEventArgs) Handles schedulerControl.EditAppointmentFormShowing
Dim scheduler As DevExpress.XtraScheduler.SchedulerControl = (DirectCast(sender, DevExpress.XtraScheduler.SchedulerControl))
Dim form As New Scheduler.CustomAppointmentForm(scheduler, e.Appointment, e.OpenRecurrenceForm)
Try
e.DialogResult = form.ShowDialog()
e.Handled = True
Finally
form.Dispose()
End Try
End Sub
End Class
End Namespace