/[AnywhereTS-MSSQL]/trunk/TSAdminTool/UninstallDialog.cs
ViewVC logotype

Contents of /trunk/TSAdminTool/UninstallDialog.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 157 - (show annotations) (download)
Sun Jul 15 15:18:55 2012 UTC (7 years, 7 months ago) by william
File size: 2247 byte(s)

1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9
10 namespace AnywhereTS
11 {
12 public partial class UninstallDialog : Form, IUninstallDialog
13 {
14 bool bClose = false;
15 public UninstallDialog()
16 {
17 InitializeComponent();
18 KeepDatabase = false;
19 KeepApplicationSettings = false;
20 KeepClientImages = true;
21
22 chkKeepDatabase.Checked = KeepDatabase;
23 chkKeepApplicationSettings.Checked = KeepApplicationSettings;
24 chkKeepClientImages.Checked = KeepClientImages;
25 }
26
27 #region IUninstallDialog members
28 public bool KeepDatabase { get; private set; }
29 public bool KeepApplicationSettings { get; private set; }
30 public bool KeepClientImages { get; private set; }
31 #endregion
32
33 private void UninstallDialog_FormClosing(object sender, FormClosingEventArgs e)
34 {
35 if (!bClose)
36 e.Cancel = true;
37 }
38
39 private void btnOK_Click(object sender, EventArgs e)
40 {
41 bClose = true;
42 this.DialogResult = DialogResult.OK;
43 this.Close();
44 }
45
46 private void btnCANCEL_Click(object sender, EventArgs e)
47 {
48 bClose = true;
49 this.DialogResult = DialogResult.Cancel;
50 this.Close();
51 }
52
53 private void chkKeepDatabase_CheckedChanged(object sender, EventArgs e)
54 {
55 KeepDatabase = chkKeepDatabase.Checked;
56 }
57
58 private void chkKeepApplicationSettings_CheckedChanged(object sender, EventArgs e)
59 {
60 KeepApplicationSettings = chkKeepApplicationSettings.Checked;
61 }
62
63 private void chkKeepClientImages_CheckedChanged(object sender, EventArgs e)
64 {
65 KeepClientImages = chkKeepClientImages.Checked;
66 }
67 }
68
69
70 public interface IUninstallDialog
71 {
72 bool KeepDatabase { get; }
73 bool KeepApplicationSettings { get; }
74 bool KeepClientImages { get; }
75 }
76
77 }

  ViewVC Help
Powered by ViewVC 1.1.22