/
SyncronizationOptionForm.cs
47 lines (41 loc) · 2.37 KB
/
SyncronizationOptionForm.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SyncWithOutlook {
public partial class SyncronizationOptionForm : Form {
public static bool AllowCreateAppointmentInScheduler;
public static bool AllowUpdateAppointmentInScheduler;
public static bool AllowRemoveAppointmentInScheduler;
public static bool AllowCreateAppointmentInOutlook;
public static bool AllowUpdateAppointmentInOutlook;
public static bool AllowRemoveAppointmentInOutlook;
public SyncronizationOptionForm() {
InitializeComponent();
}
private void simpleButton1_Click(object sender, EventArgs e) {
this.Close();
}
private void SyncronizationOptionForm_Load(object sender, EventArgs e) {
checkEditAllowCreateOutllok.EditValue = SyncronizationOptionForm.AllowCreateAppointmentInOutlook;
checkEditAllowCreateScheduler.EditValue = SyncronizationOptionForm.AllowCreateAppointmentInScheduler;
checkEditAllowRemoveOutlook.EditValue = SyncronizationOptionForm.AllowRemoveAppointmentInOutlook;
checkEditAllowRemoveScheduler.EditValue = SyncronizationOptionForm.AllowRemoveAppointmentInScheduler;
checkEditAllowUpdateOutlook.EditValue = SyncronizationOptionForm.AllowUpdateAppointmentInOutlook;
checkEditAllowUpdateScheduler.EditValue = SyncronizationOptionForm.AllowUpdateAppointmentInScheduler;
}
protected override void OnClosing(CancelEventArgs e) {
SyncronizationOptionForm.AllowCreateAppointmentInOutlook = (bool)checkEditAllowCreateOutllok.EditValue;
SyncronizationOptionForm.AllowCreateAppointmentInScheduler = (bool)checkEditAllowCreateScheduler.EditValue;
SyncronizationOptionForm.AllowRemoveAppointmentInOutlook = (bool)checkEditAllowRemoveOutlook.EditValue;
SyncronizationOptionForm.AllowRemoveAppointmentInScheduler = (bool)checkEditAllowRemoveScheduler.EditValue;
SyncronizationOptionForm.AllowUpdateAppointmentInOutlook = (bool)checkEditAllowUpdateOutlook.EditValue;
SyncronizationOptionForm.AllowUpdateAppointmentInScheduler = (bool)checkEditAllowUpdateScheduler.EditValue;
base.OnClosing(e);
}
}
}