/
SyncronizationOptionForm.vb
49 lines (42 loc) · 2.52 KB
/
SyncronizationOptionForm.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
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
Namespace SyncWithOutlook
Partial Public Class SyncronizationOptionForm
Inherits Form
Public Shared AllowCreateAppointmentInScheduler As Boolean
Public Shared AllowUpdateAppointmentInScheduler As Boolean
Public Shared AllowRemoveAppointmentInScheduler As Boolean
Public Shared AllowCreateAppointmentInOutlook As Boolean
Public Shared AllowUpdateAppointmentInOutlook As Boolean
Public Shared AllowRemoveAppointmentInOutlook As Boolean
Public Sub New()
InitializeComponent()
End Sub
Private Sub simpleButton1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles simpleButton1.Click
Me.Close()
End Sub
Private Sub SyncronizationOptionForm_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
checkEditAllowCreateOutllok.EditValue = SyncronizationOptionForm.AllowCreateAppointmentInOutlook
checkEditAllowCreateScheduler.EditValue = SyncronizationOptionForm.AllowCreateAppointmentInScheduler
checkEditAllowRemoveOutlook.EditValue = SyncronizationOptionForm.AllowRemoveAppointmentInOutlook
checkEditAllowRemoveScheduler.EditValue = SyncronizationOptionForm.AllowRemoveAppointmentInScheduler
checkEditAllowUpdateOutlook.EditValue = SyncronizationOptionForm.AllowUpdateAppointmentInOutlook
checkEditAllowUpdateScheduler.EditValue = SyncronizationOptionForm.AllowUpdateAppointmentInScheduler
End Sub
Protected Overrides Sub OnClosing(ByVal e As CancelEventArgs)
SyncronizationOptionForm.AllowCreateAppointmentInOutlook = CBool(checkEditAllowCreateOutllok.EditValue)
SyncronizationOptionForm.AllowCreateAppointmentInScheduler = CBool(checkEditAllowCreateScheduler.EditValue)
SyncronizationOptionForm.AllowRemoveAppointmentInOutlook = CBool(checkEditAllowRemoveOutlook.EditValue)
SyncronizationOptionForm.AllowRemoveAppointmentInScheduler = CBool(checkEditAllowRemoveScheduler.EditValue)
SyncronizationOptionForm.AllowUpdateAppointmentInOutlook = CBool(checkEditAllowUpdateOutlook.EditValue)
SyncronizationOptionForm.AllowUpdateAppointmentInScheduler = CBool(checkEditAllowUpdateScheduler.EditValue)
MyBase.OnClosing(e)
End Sub
End Class
End Namespace