Merge lp:~dangarner/xibo/client-132 into lp:xibo/1.3
- client-132
- Merge into faye
Proposed by
Dan Garner
Status: | Merged |
---|---|
Merged at revision: | 231 |
Proposed branch: | lp:~dangarner/xibo/client-132 |
Merge into: | lp:xibo/1.3 |
Diff against target: |
1119 lines (+214/-291) 12 files modified
client/dotNET/CacheManager.cs (+6/-1) client/dotNET/HardwareKey.cs (+24/-11) client/dotNET/MainForm.Designer.cs (+2/-1) client/dotNET/MainForm.cs (+4/-0) client/dotNET/Media.cs (+6/-2) client/dotNET/OptionForm.Designer.cs (+44/-74) client/dotNET/OptionForm.cs (+102/-198) client/dotNET/Properties/Settings.Designer.cs (+13/-1) client/dotNET/Properties/Settings.settings (+3/-0) client/dotNET/Region.cs (+6/-2) client/dotNET/RequiredFiles.cs (+1/-1) client/dotNET/app.config (+3/-0) |
To merge this branch: | bzr merge lp:~dangarner/xibo/client-132 |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Xibo Maintainters | Pending | ||
Review via email: mp+89591@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'client/dotNET/CacheManager.cs' | |||
2 | --- client/dotNET/CacheManager.cs 2011-02-16 17:06:01 +0000 | |||
3 | +++ client/dotNET/CacheManager.cs 2012-01-22 15:34:34 +0000 | |||
4 | @@ -222,7 +222,7 @@ | |||
5 | 222 | /// <returns></returns> | 222 | /// <returns></returns> |
6 | 223 | public bool IsValidLayout(string layoutFile) | 223 | public bool IsValidLayout(string layoutFile) |
7 | 224 | { | 224 | { |
9 | 225 | Debug.WriteLine("Checking Layout " + layoutFile + " is valid"); | 225 | Debug.WriteLine("Checking if Layout " + layoutFile + " is valid"); |
10 | 226 | 226 | ||
11 | 227 | if (!IsValidPath(layoutFile)) | 227 | if (!IsValidPath(layoutFile)) |
12 | 228 | return false; | 228 | return false; |
13 | @@ -245,7 +245,10 @@ | |||
14 | 245 | 245 | ||
15 | 246 | // Get the path and see if its valid | 246 | // Get the path and see if its valid |
16 | 247 | if (!IsValidPath(media.InnerText)) | 247 | if (!IsValidPath(media.InnerText)) |
17 | 248 | { | ||
18 | 249 | Debug.WriteLine("Invalid Media: " + media.Attributes["id"].Value.ToString()); | ||
19 | 248 | return false; | 250 | return false; |
20 | 251 | } | ||
21 | 249 | 252 | ||
22 | 250 | break; | 253 | break; |
23 | 251 | 254 | ||
24 | @@ -254,6 +257,8 @@ | |||
25 | 254 | } | 257 | } |
26 | 255 | } | 258 | } |
27 | 256 | 259 | ||
28 | 260 | Debug.WriteLine("Layout " + layoutFile + " is valid"); | ||
29 | 261 | |||
30 | 257 | return true; | 262 | return true; |
31 | 258 | } | 263 | } |
32 | 259 | 264 | ||
33 | 260 | 265 | ||
34 | === modified file 'client/dotNET/HardwareKey.cs' | |||
35 | --- client/dotNET/HardwareKey.cs 2010-04-19 21:45:10 +0000 | |||
36 | +++ client/dotNET/HardwareKey.cs 2012-01-22 15:34:34 +0000 | |||
37 | @@ -27,30 +27,44 @@ | |||
38 | 27 | { | 27 | { |
39 | 28 | class HardwareKey | 28 | class HardwareKey |
40 | 29 | { | 29 | { |
41 | 30 | private string _hardwareKey; | ||
42 | 31 | private string _macAddress; | ||
43 | 32 | |||
44 | 33 | public string MacAddress | ||
45 | 34 | { | ||
46 | 35 | get | ||
47 | 36 | { | ||
48 | 37 | return _macAddress; | ||
49 | 38 | } | ||
50 | 39 | } | ||
51 | 40 | |||
52 | 30 | public HardwareKey() | 41 | public HardwareKey() |
53 | 31 | { | 42 | { |
54 | 32 | System.Diagnostics.Debug.WriteLine("[IN]", "HardwareKey"); | 43 | System.Diagnostics.Debug.WriteLine("[IN]", "HardwareKey"); |
55 | 33 | 44 | ||
56 | 34 | // Get the key from the Settings | 45 | // Get the key from the Settings |
58 | 35 | hardwareKey = Properties.Settings.Default.hardwareKey; | 46 | _hardwareKey = Properties.Settings.Default.hardwareKey; |
59 | 36 | 47 | ||
60 | 37 | // Is the key empty? | 48 | // Is the key empty? |
62 | 38 | if (hardwareKey == "") | 49 | if (_hardwareKey == "") |
63 | 39 | { | 50 | { |
64 | 40 | try | 51 | try |
65 | 41 | { | 52 | { |
66 | 42 | // Calculate the Hardware key from the CPUID and Volume Serial | 53 | // Calculate the Hardware key from the CPUID and Volume Serial |
68 | 43 | hardwareKey = Hashes.MD5(GetCPUId() + GetVolumeSerial("C")); | 54 | _hardwareKey = Hashes.MD5(GetCPUId() + GetVolumeSerial("C")); |
69 | 44 | } | 55 | } |
70 | 45 | catch | 56 | catch |
71 | 46 | { | 57 | { |
73 | 47 | hardwareKey = "Change for Unique Key"; | 58 | _hardwareKey = "Change for Unique Key"; |
74 | 48 | } | 59 | } |
75 | 49 | 60 | ||
76 | 50 | // Store the key | 61 | // Store the key |
78 | 51 | Properties.Settings.Default.hardwareKey = hardwareKey; | 62 | Properties.Settings.Default.hardwareKey = _hardwareKey; |
79 | 52 | } | 63 | } |
80 | 53 | 64 | ||
81 | 65 | // Get the Mac Address | ||
82 | 66 | _macAddress = GetMACAddress(); | ||
83 | 67 | |||
84 | 54 | System.Diagnostics.Debug.WriteLine("[OUT]", "HardwareKey"); | 68 | System.Diagnostics.Debug.WriteLine("[OUT]", "HardwareKey"); |
85 | 55 | } | 69 | } |
86 | 56 | 70 | ||
87 | @@ -61,7 +75,7 @@ | |||
88 | 61 | { | 75 | { |
89 | 62 | get | 76 | get |
90 | 63 | { | 77 | { |
92 | 64 | return this.hardwareKey; | 78 | return this._hardwareKey; |
93 | 65 | } | 79 | } |
94 | 66 | } | 80 | } |
95 | 67 | 81 | ||
96 | @@ -71,10 +85,10 @@ | |||
97 | 71 | public void Regenerate() | 85 | public void Regenerate() |
98 | 72 | { | 86 | { |
99 | 73 | // Calculate the Hardware key from the CPUID and Volume Serial | 87 | // Calculate the Hardware key from the CPUID and Volume Serial |
101 | 74 | hardwareKey = Hashes.MD5(GetCPUId() + GetVolumeSerial("C")); | 88 | _hardwareKey = Hashes.MD5(GetCPUId() + GetVolumeSerial("C")); |
102 | 75 | 89 | ||
103 | 76 | // Store the key | 90 | // Store the key |
105 | 77 | Properties.Settings.Default.hardwareKey = hardwareKey; | 91 | Properties.Settings.Default.hardwareKey = _hardwareKey; |
106 | 78 | Properties.Settings.Default.Save(); | 92 | Properties.Settings.Default.Save(); |
107 | 79 | } | 93 | } |
108 | 80 | 94 | ||
109 | @@ -105,6 +119,7 @@ | |||
110 | 105 | ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); | 119 | ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); |
111 | 106 | ManagementObjectCollection moc = mc.GetInstances(); | 120 | ManagementObjectCollection moc = mc.GetInstances(); |
112 | 107 | string MACAddress = String.Empty; | 121 | string MACAddress = String.Empty; |
113 | 122 | |||
114 | 108 | foreach (ManagementObject mo in moc) | 123 | foreach (ManagementObject mo in moc) |
115 | 109 | { | 124 | { |
116 | 110 | if (MACAddress == String.Empty) // only return MAC Address from first card | 125 | if (MACAddress == String.Empty) // only return MAC Address from first card |
117 | @@ -113,7 +128,7 @@ | |||
118 | 113 | } | 128 | } |
119 | 114 | mo.Dispose(); | 129 | mo.Dispose(); |
120 | 115 | } | 130 | } |
122 | 116 | MACAddress = MACAddress.Replace(":", ""); | 131 | |
123 | 117 | return MACAddress; | 132 | return MACAddress; |
124 | 118 | } | 133 | } |
125 | 119 | 134 | ||
126 | @@ -141,7 +156,5 @@ | |||
127 | 141 | 156 | ||
128 | 142 | return cpuInfo; | 157 | return cpuInfo; |
129 | 143 | } | 158 | } |
130 | 144 | |||
131 | 145 | private string hardwareKey; | ||
132 | 146 | } | 159 | } |
133 | 147 | } | 160 | } |
134 | 148 | 161 | ||
135 | === modified file 'client/dotNET/MainForm.Designer.cs' | |||
136 | --- client/dotNET/MainForm.Designer.cs 2009-12-31 11:38:50 +0000 | |||
137 | +++ client/dotNET/MainForm.Designer.cs 2012-01-22 15:34:34 +0000 | |||
138 | @@ -1,3 +1,4 @@ | |||
139 | 1 | using XiboClient.Properties; | ||
140 | 1 | namespace XiboClient | 2 | namespace XiboClient |
141 | 2 | { | 3 | { |
142 | 3 | partial class MainForm | 4 | partial class MainForm |
143 | @@ -38,7 +39,7 @@ | |||
144 | 38 | this.BackColor = System.Drawing.Color.Black; | 39 | this.BackColor = System.Drawing.Color.Black; |
145 | 39 | this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; | 40 | this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; |
146 | 40 | this.ClientSize = new System.Drawing.Size(1024, 768); | 41 | this.ClientSize = new System.Drawing.Size(1024, 768); |
148 | 41 | this.DoubleBuffered = true; | 42 | this.DoubleBuffered = Settings.Default.DoubleBuffering; |
149 | 42 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; | 43 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
150 | 43 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); | 44 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
151 | 44 | this.Name = "MainForm"; | 45 | this.Name = "MainForm"; |
152 | 45 | 46 | ||
153 | === modified file 'client/dotNET/MainForm.cs' | |||
154 | --- client/dotNET/MainForm.cs 2011-09-06 20:46:43 +0000 | |||
155 | +++ client/dotNET/MainForm.cs 2012-01-22 15:34:34 +0000 | |||
156 | @@ -70,6 +70,9 @@ | |||
157 | 70 | _clientSize = SystemInformation.PrimaryMonitorSize; | 70 | _clientSize = SystemInformation.PrimaryMonitorSize; |
158 | 71 | } | 71 | } |
159 | 72 | 72 | ||
160 | 73 | // Setup the proxy information | ||
161 | 74 | OptionForm.SetGlobalProxy(); | ||
162 | 75 | |||
163 | 73 | _statLog = new StatLog(); | 76 | _statLog = new StatLog(); |
164 | 74 | 77 | ||
165 | 75 | this.FormClosing += new FormClosingEventHandler(MainForm_FormClosing); | 78 | this.FormClosing += new FormClosingEventHandler(MainForm_FormClosing); |
166 | @@ -419,6 +422,7 @@ | |||
167 | 419 | if (region.ChildNodes.Count == 0) | 422 | if (region.ChildNodes.Count == 0) |
168 | 420 | { | 423 | { |
169 | 421 | Debug.WriteLine("A region with no media detected"); | 424 | Debug.WriteLine("A region with no media detected"); |
170 | 425 | continue; | ||
171 | 422 | } | 426 | } |
172 | 423 | 427 | ||
173 | 424 | //each region | 428 | //each region |
174 | 425 | 429 | ||
175 | === modified file 'client/dotNET/Media.cs' | |||
176 | --- client/dotNET/Media.cs 2011-06-05 15:21:16 +0000 | |||
177 | +++ client/dotNET/Media.cs 2012-01-22 15:34:34 +0000 | |||
178 | @@ -21,6 +21,7 @@ | |||
179 | 21 | using System.Collections.Generic; | 21 | using System.Collections.Generic; |
180 | 22 | using System.Text; | 22 | using System.Text; |
181 | 23 | using System.Windows.Forms; | 23 | using System.Windows.Forms; |
182 | 24 | using XiboClient.Properties; | ||
183 | 24 | 25 | ||
184 | 25 | namespace XiboClient | 26 | namespace XiboClient |
185 | 26 | { | 27 | { |
186 | @@ -48,8 +49,11 @@ | |||
187 | 48 | this.BackColor = System.Drawing.Color.Transparent; | 49 | this.BackColor = System.Drawing.Color.Transparent; |
188 | 49 | this.TransparencyKey = System.Drawing.Color.White; | 50 | this.TransparencyKey = System.Drawing.Color.White; |
189 | 50 | 51 | ||
192 | 51 | SetStyle(ControlStyles.OptimizedDoubleBuffer, true); | 52 | if (Settings.Default.DoubleBuffering) |
193 | 52 | SetStyle(ControlStyles.AllPaintingInWmPaint, true); | 53 | { |
194 | 54 | SetStyle(ControlStyles.OptimizedDoubleBuffer, true); | ||
195 | 55 | SetStyle(ControlStyles.AllPaintingInWmPaint, true); | ||
196 | 56 | } | ||
197 | 53 | } | 57 | } |
198 | 54 | 58 | ||
199 | 55 | protected void StartTimer() | 59 | protected void StartTimer() |
200 | 56 | 60 | ||
201 | === modified file 'client/dotNET/OptionForm.Designer.cs' | |||
202 | --- client/dotNET/OptionForm.Designer.cs 2011-07-16 13:13:44 +0000 | |||
203 | +++ client/dotNET/OptionForm.Designer.cs 2012-01-22 15:34:34 +0000 | |||
204 | @@ -75,11 +75,11 @@ | |||
205 | 75 | this.clientHeight = new System.Windows.Forms.NumericUpDown(); | 75 | this.clientHeight = new System.Windows.Forms.NumericUpDown(); |
206 | 76 | this.clientWidth = new System.Windows.Forms.NumericUpDown(); | 76 | this.clientWidth = new System.Windows.Forms.NumericUpDown(); |
207 | 77 | this.tabPage5 = new System.Windows.Forms.TabPage(); | 77 | this.tabPage5 = new System.Windows.Forms.TabPage(); |
208 | 78 | this.doubleBufferingCheckBox = new System.Windows.Forms.CheckBox(); | ||
209 | 78 | this.enableMouseCb = new System.Windows.Forms.CheckBox(); | 79 | this.enableMouseCb = new System.Windows.Forms.CheckBox(); |
210 | 79 | this.cbExpireModifiedLayouts = new System.Windows.Forms.CheckBox(); | 80 | this.cbExpireModifiedLayouts = new System.Windows.Forms.CheckBox(); |
212 | 80 | this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); | 81 | this.numericUpDownEmptyRegions = new System.Windows.Forms.NumericUpDown(); |
213 | 81 | this.label15 = new System.Windows.Forms.Label(); | 82 | this.label15 = new System.Windows.Forms.Label(); |
214 | 82 | this.buttonReset = new System.Windows.Forms.Button(); | ||
215 | 83 | this.menuStrip1 = new System.Windows.Forms.MenuStrip(); | 83 | this.menuStrip1 = new System.Windows.Forms.MenuStrip(); |
216 | 84 | this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); | 84 | this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
217 | 85 | this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); | 85 | this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); |
218 | @@ -101,7 +101,7 @@ | |||
219 | 101 | ((System.ComponentModel.ISupportInitialize)(this.clientHeight)).BeginInit(); | 101 | ((System.ComponentModel.ISupportInitialize)(this.clientHeight)).BeginInit(); |
220 | 102 | ((System.ComponentModel.ISupportInitialize)(this.clientWidth)).BeginInit(); | 102 | ((System.ComponentModel.ISupportInitialize)(this.clientWidth)).BeginInit(); |
221 | 103 | this.tabPage5.SuspendLayout(); | 103 | this.tabPage5.SuspendLayout(); |
223 | 104 | ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); | 104 | ((System.ComponentModel.ISupportInitialize)(this.numericUpDownEmptyRegions)).BeginInit(); |
224 | 105 | this.menuStrip1.SuspendLayout(); | 105 | this.menuStrip1.SuspendLayout(); |
225 | 106 | this.SuspendLayout(); | 106 | this.SuspendLayout(); |
226 | 107 | // | 107 | // |
227 | @@ -134,7 +134,6 @@ | |||
228 | 134 | // | 134 | // |
229 | 135 | // buttonSaveSettings | 135 | // buttonSaveSettings |
230 | 136 | // | 136 | // |
231 | 137 | this.buttonSaveSettings.Enabled = false; | ||
232 | 138 | this.buttonSaveSettings.Location = new System.Drawing.Point(200, 320); | 137 | this.buttonSaveSettings.Location = new System.Drawing.Point(200, 320); |
233 | 139 | this.buttonSaveSettings.Name = "buttonSaveSettings"; | 138 | this.buttonSaveSettings.Name = "buttonSaveSettings"; |
234 | 140 | this.buttonSaveSettings.Size = new System.Drawing.Size(75, 23); | 139 | this.buttonSaveSettings.Size = new System.Drawing.Size(75, 23); |
235 | @@ -183,7 +182,6 @@ | |||
236 | 183 | // | 182 | // |
237 | 184 | // nupScrollStepAmount | 183 | // nupScrollStepAmount |
238 | 185 | // | 184 | // |
239 | 186 | this.nupScrollStepAmount.DataBindings.Add(new System.Windows.Forms.Binding("Value", global::XiboClient.Properties.Settings.Default, "scrollStepAmount", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
240 | 187 | this.nupScrollStepAmount.Location = new System.Drawing.Point(184, 145); | 185 | this.nupScrollStepAmount.Location = new System.Drawing.Point(184, 145); |
241 | 188 | this.nupScrollStepAmount.Minimum = new decimal(new int[] { | 186 | this.nupScrollStepAmount.Minimum = new decimal(new int[] { |
242 | 189 | 1, | 187 | 1, |
243 | @@ -193,7 +191,11 @@ | |||
244 | 193 | this.nupScrollStepAmount.Name = "nupScrollStepAmount"; | 191 | this.nupScrollStepAmount.Name = "nupScrollStepAmount"; |
245 | 194 | this.nupScrollStepAmount.Size = new System.Drawing.Size(76, 20); | 192 | this.nupScrollStepAmount.Size = new System.Drawing.Size(76, 20); |
246 | 195 | this.nupScrollStepAmount.TabIndex = 16; | 193 | this.nupScrollStepAmount.TabIndex = 16; |
248 | 196 | this.nupScrollStepAmount.Value = global::XiboClient.Properties.Settings.Default.scrollStepAmount; | 194 | this.nupScrollStepAmount.Value = new decimal(new int[] { |
249 | 195 | 1, | ||
250 | 196 | 0, | ||
251 | 197 | 0, | ||
252 | 198 | 0}); | ||
253 | 197 | // | 199 | // |
254 | 198 | // label10 | 200 | // label10 |
255 | 199 | // | 201 | // |
256 | @@ -257,66 +259,56 @@ | |||
257 | 257 | // | 259 | // |
258 | 258 | // tbHardwareKey | 260 | // tbHardwareKey |
259 | 259 | // | 261 | // |
260 | 260 | this.tbHardwareKey.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "hardwareKey", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
261 | 261 | this.tbHardwareKey.Location = new System.Drawing.Point(184, 119); | 262 | this.tbHardwareKey.Location = new System.Drawing.Point(184, 119); |
262 | 262 | this.tbHardwareKey.Name = "tbHardwareKey"; | 263 | this.tbHardwareKey.Name = "tbHardwareKey"; |
263 | 263 | this.tbHardwareKey.Size = new System.Drawing.Size(237, 20); | 264 | this.tbHardwareKey.Size = new System.Drawing.Size(237, 20); |
264 | 264 | this.tbHardwareKey.TabIndex = 14; | 265 | this.tbHardwareKey.TabIndex = 14; |
265 | 265 | this.tbHardwareKey.Text = global::XiboClient.Properties.Settings.Default.hardwareKey; | ||
266 | 266 | // | 266 | // |
267 | 267 | // checkBoxStats | 267 | // checkBoxStats |
268 | 268 | // | 268 | // |
269 | 269 | this.checkBoxStats.AutoSize = true; | 269 | this.checkBoxStats.AutoSize = true; |
271 | 270 | this.checkBoxStats.Checked = global::XiboClient.Properties.Settings.Default.statsEnabled; | 270 | this.checkBoxStats.Checked = true; |
272 | 271 | this.checkBoxStats.CheckState = System.Windows.Forms.CheckState.Checked; | 271 | this.checkBoxStats.CheckState = System.Windows.Forms.CheckState.Checked; |
273 | 272 | this.checkBoxStats.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::XiboClient.Properties.Settings.Default, "statsEnabled", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
274 | 273 | this.checkBoxStats.Location = new System.Drawing.Point(184, 204); | 272 | this.checkBoxStats.Location = new System.Drawing.Point(184, 204); |
275 | 274 | this.checkBoxStats.Name = "checkBoxStats"; | 273 | this.checkBoxStats.Name = "checkBoxStats"; |
276 | 275 | this.checkBoxStats.Size = new System.Drawing.Size(104, 17); | 274 | this.checkBoxStats.Size = new System.Drawing.Size(104, 17); |
277 | 276 | this.checkBoxStats.TabIndex = 0; | 275 | this.checkBoxStats.TabIndex = 0; |
278 | 277 | this.checkBoxStats.Text = "Enable Statistics"; | 276 | this.checkBoxStats.Text = "Enable Statistics"; |
279 | 278 | this.checkBoxStats.UseVisualStyleBackColor = true; | 277 | this.checkBoxStats.UseVisualStyleBackColor = true; |
280 | 279 | this.checkBoxStats.CheckedChanged += new System.EventHandler(this.checkBoxStats_CheckedChanged); | ||
281 | 280 | // | 278 | // |
282 | 281 | // checkBoxPowerPoint | 279 | // checkBoxPowerPoint |
283 | 282 | // | 280 | // |
284 | 283 | this.checkBoxPowerPoint.AutoSize = true; | 281 | this.checkBoxPowerPoint.AutoSize = true; |
285 | 284 | this.checkBoxPowerPoint.Checked = global::XiboClient.Properties.Settings.Default.powerpointEnabled; | ||
286 | 285 | this.checkBoxPowerPoint.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::XiboClient.Properties.Settings.Default, "powerpointEnabled", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
287 | 286 | this.checkBoxPowerPoint.Location = new System.Drawing.Point(184, 181); | 282 | this.checkBoxPowerPoint.Location = new System.Drawing.Point(184, 181); |
288 | 287 | this.checkBoxPowerPoint.Name = "checkBoxPowerPoint"; | 283 | this.checkBoxPowerPoint.Name = "checkBoxPowerPoint"; |
289 | 288 | this.checkBoxPowerPoint.Size = new System.Drawing.Size(116, 17); | 284 | this.checkBoxPowerPoint.Size = new System.Drawing.Size(116, 17); |
290 | 289 | this.checkBoxPowerPoint.TabIndex = 12; | 285 | this.checkBoxPowerPoint.TabIndex = 12; |
291 | 290 | this.checkBoxPowerPoint.Text = "Enable PowerPoint"; | 286 | this.checkBoxPowerPoint.Text = "Enable PowerPoint"; |
292 | 291 | this.checkBoxPowerPoint.UseVisualStyleBackColor = true; | 287 | this.checkBoxPowerPoint.UseVisualStyleBackColor = true; |
293 | 292 | this.checkBoxPowerPoint.CheckedChanged += new System.EventHandler(this.checkBoxPowerPoint_CheckedChanged); | ||
294 | 293 | // | 288 | // |
295 | 294 | // textBoxXmdsUri | 289 | // textBoxXmdsUri |
296 | 295 | // | 290 | // |
297 | 296 | this.textBoxXmdsUri.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "serverURI", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
298 | 297 | this.textBoxXmdsUri.Location = new System.Drawing.Point(184, 11); | 291 | this.textBoxXmdsUri.Location = new System.Drawing.Point(184, 11); |
299 | 298 | this.textBoxXmdsUri.Name = "textBoxXmdsUri"; | 292 | this.textBoxXmdsUri.Name = "textBoxXmdsUri"; |
300 | 299 | this.textBoxXmdsUri.Size = new System.Drawing.Size(237, 20); | 293 | this.textBoxXmdsUri.Size = new System.Drawing.Size(237, 20); |
301 | 300 | this.textBoxXmdsUri.TabIndex = 0; | 294 | this.textBoxXmdsUri.TabIndex = 0; |
303 | 301 | this.textBoxXmdsUri.Text = global::XiboClient.Properties.Settings.Default.serverURI; | 295 | this.textBoxXmdsUri.Text = "http://localhost/xibo"; |
304 | 302 | // | 296 | // |
305 | 303 | // textBoxServerKey | 297 | // textBoxServerKey |
306 | 304 | // | 298 | // |
307 | 305 | this.textBoxServerKey.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "ServerKey", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
308 | 306 | this.textBoxServerKey.Location = new System.Drawing.Point(184, 38); | 299 | this.textBoxServerKey.Location = new System.Drawing.Point(184, 38); |
309 | 307 | this.textBoxServerKey.Name = "textBoxServerKey"; | 300 | this.textBoxServerKey.Name = "textBoxServerKey"; |
310 | 308 | this.textBoxServerKey.Size = new System.Drawing.Size(237, 20); | 301 | this.textBoxServerKey.Size = new System.Drawing.Size(237, 20); |
311 | 309 | this.textBoxServerKey.TabIndex = 2; | 302 | this.textBoxServerKey.TabIndex = 2; |
313 | 310 | this.textBoxServerKey.Text = global::XiboClient.Properties.Settings.Default.ServerKey; | 303 | this.textBoxServerKey.Text = "yourserverkey"; |
314 | 311 | // | 304 | // |
315 | 312 | // textBoxLibraryPath | 305 | // textBoxLibraryPath |
316 | 313 | // | 306 | // |
317 | 314 | this.textBoxLibraryPath.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "LibraryPath", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
318 | 315 | this.textBoxLibraryPath.Location = new System.Drawing.Point(184, 65); | 307 | this.textBoxLibraryPath.Location = new System.Drawing.Point(184, 65); |
319 | 316 | this.textBoxLibraryPath.Name = "textBoxLibraryPath"; | 308 | this.textBoxLibraryPath.Name = "textBoxLibraryPath"; |
320 | 317 | this.textBoxLibraryPath.Size = new System.Drawing.Size(156, 20); | 309 | this.textBoxLibraryPath.Size = new System.Drawing.Size(156, 20); |
321 | 318 | this.textBoxLibraryPath.TabIndex = 4; | 310 | this.textBoxLibraryPath.TabIndex = 4; |
323 | 319 | this.textBoxLibraryPath.Text = global::XiboClient.Properties.Settings.Default.LibraryPath; | 311 | this.textBoxLibraryPath.Text = "DEFAULT"; |
324 | 320 | // | 312 | // |
325 | 321 | // tabPage2 | 313 | // tabPage2 |
326 | 322 | // | 314 | // |
327 | @@ -396,19 +388,17 @@ | |||
328 | 396 | this.labelXmdsUrl.AutoSize = true; | 388 | this.labelXmdsUrl.AutoSize = true; |
329 | 397 | this.labelXmdsUrl.Location = new System.Drawing.Point(139, 10); | 389 | this.labelXmdsUrl.Location = new System.Drawing.Point(139, 10); |
330 | 398 | this.labelXmdsUrl.Name = "labelXmdsUrl"; | 390 | this.labelXmdsUrl.Name = "labelXmdsUrl"; |
332 | 399 | this.labelXmdsUrl.Size = new System.Drawing.Size(338, 13); | 391 | this.labelXmdsUrl.Size = new System.Drawing.Size(299, 13); |
333 | 400 | this.labelXmdsUrl.TabIndex = 3; | 392 | this.labelXmdsUrl.TabIndex = 3; |
335 | 401 | this.labelXmdsUrl.Text = global::XiboClient.Properties.Settings.Default.XiboClient_xmds_xmds; | 393 | this.labelXmdsUrl.Text = "http://localhost/Series%201.3/131-datasets/server/xmds.php"; |
336 | 402 | // | 394 | // |
337 | 403 | // textBoxDisplayName | 395 | // textBoxDisplayName |
338 | 404 | // | 396 | // |
339 | 405 | this.textBoxDisplayName.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "displayName", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
340 | 406 | this.textBoxDisplayName.Location = new System.Drawing.Point(142, 37); | 397 | this.textBoxDisplayName.Location = new System.Drawing.Point(142, 37); |
341 | 407 | this.textBoxDisplayName.Name = "textBoxDisplayName"; | 398 | this.textBoxDisplayName.Name = "textBoxDisplayName"; |
342 | 408 | this.textBoxDisplayName.Size = new System.Drawing.Size(264, 20); | 399 | this.textBoxDisplayName.Size = new System.Drawing.Size(264, 20); |
343 | 409 | this.textBoxDisplayName.TabIndex = 0; | 400 | this.textBoxDisplayName.TabIndex = 0; |
346 | 410 | this.textBoxDisplayName.Text = global::XiboClient.Properties.Settings.Default.displayName; | 401 | this.textBoxDisplayName.Text = "COMPUTERNAME"; |
345 | 411 | this.textBoxDisplayName.TextChanged += new System.EventHandler(this.textBoxDisplayName_TextChanged); | ||
347 | 412 | // | 402 | // |
348 | 413 | // tabPage3 | 403 | // tabPage3 |
349 | 414 | // | 404 | // |
350 | @@ -448,31 +438,25 @@ | |||
351 | 448 | // | 438 | // |
352 | 449 | // textBoxProxyDomain | 439 | // textBoxProxyDomain |
353 | 450 | // | 440 | // |
354 | 451 | this.textBoxProxyDomain.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "ProxyDomain", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
355 | 452 | this.textBoxProxyDomain.Location = new System.Drawing.Point(99, 95); | 441 | this.textBoxProxyDomain.Location = new System.Drawing.Point(99, 95); |
356 | 453 | this.textBoxProxyDomain.Name = "textBoxProxyDomain"; | 442 | this.textBoxProxyDomain.Name = "textBoxProxyDomain"; |
357 | 454 | this.textBoxProxyDomain.Size = new System.Drawing.Size(171, 20); | 443 | this.textBoxProxyDomain.Size = new System.Drawing.Size(171, 20); |
358 | 455 | this.textBoxProxyDomain.TabIndex = 7; | 444 | this.textBoxProxyDomain.TabIndex = 7; |
359 | 456 | this.textBoxProxyDomain.Text = global::XiboClient.Properties.Settings.Default.ProxyDomain; | ||
360 | 457 | // | 445 | // |
361 | 458 | // maskedTextBoxProxyPass | 446 | // maskedTextBoxProxyPass |
362 | 459 | // | 447 | // |
363 | 460 | this.maskedTextBoxProxyPass.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "ProxyPassword", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
364 | 461 | this.maskedTextBoxProxyPass.Location = new System.Drawing.Point(99, 67); | 448 | this.maskedTextBoxProxyPass.Location = new System.Drawing.Point(99, 67); |
365 | 462 | this.maskedTextBoxProxyPass.Name = "maskedTextBoxProxyPass"; | 449 | this.maskedTextBoxProxyPass.Name = "maskedTextBoxProxyPass"; |
366 | 463 | this.maskedTextBoxProxyPass.Size = new System.Drawing.Size(171, 20); | 450 | this.maskedTextBoxProxyPass.Size = new System.Drawing.Size(171, 20); |
367 | 464 | this.maskedTextBoxProxyPass.TabIndex = 5; | 451 | this.maskedTextBoxProxyPass.TabIndex = 5; |
368 | 465 | this.maskedTextBoxProxyPass.Text = global::XiboClient.Properties.Settings.Default.ProxyPassword; | ||
369 | 466 | this.maskedTextBoxProxyPass.UseSystemPasswordChar = true; | 452 | this.maskedTextBoxProxyPass.UseSystemPasswordChar = true; |
370 | 467 | // | 453 | // |
371 | 468 | // textBoxProxyUser | 454 | // textBoxProxyUser |
372 | 469 | // | 455 | // |
373 | 470 | this.textBoxProxyUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::XiboClient.Properties.Settings.Default, "ProxyUser", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
374 | 471 | this.textBoxProxyUser.Location = new System.Drawing.Point(99, 41); | 456 | this.textBoxProxyUser.Location = new System.Drawing.Point(99, 41); |
375 | 472 | this.textBoxProxyUser.Name = "textBoxProxyUser"; | 457 | this.textBoxProxyUser.Name = "textBoxProxyUser"; |
376 | 473 | this.textBoxProxyUser.Size = new System.Drawing.Size(171, 20); | 458 | this.textBoxProxyUser.Size = new System.Drawing.Size(171, 20); |
377 | 474 | this.textBoxProxyUser.TabIndex = 3; | 459 | this.textBoxProxyUser.TabIndex = 3; |
378 | 475 | this.textBoxProxyUser.Text = global::XiboClient.Properties.Settings.Default.ProxyUser; | ||
379 | 476 | // | 460 | // |
380 | 477 | // labelProxyDomain | 461 | // labelProxyDomain |
381 | 478 | // | 462 | // |
382 | @@ -557,7 +541,6 @@ | |||
383 | 557 | // | 541 | // |
384 | 558 | // offsetX | 542 | // offsetX |
385 | 559 | // | 543 | // |
386 | 560 | this.offsetX.DataBindings.Add(new System.Windows.Forms.Binding("Value", global::XiboClient.Properties.Settings.Default, "offsetX", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
387 | 561 | this.offsetX.Location = new System.Drawing.Point(77, 67); | 544 | this.offsetX.Location = new System.Drawing.Point(77, 67); |
388 | 562 | this.offsetX.Maximum = new decimal(new int[] { | 545 | this.offsetX.Maximum = new decimal(new int[] { |
389 | 563 | 10000, | 546 | 10000, |
390 | @@ -567,12 +550,9 @@ | |||
391 | 567 | this.offsetX.Name = "offsetX"; | 550 | this.offsetX.Name = "offsetX"; |
392 | 568 | this.offsetX.Size = new System.Drawing.Size(77, 20); | 551 | this.offsetX.Size = new System.Drawing.Size(77, 20); |
393 | 569 | this.offsetX.TabIndex = 6; | 552 | this.offsetX.TabIndex = 6; |
394 | 570 | this.offsetX.Value = global::XiboClient.Properties.Settings.Default.offsetX; | ||
395 | 571 | this.offsetX.ValueChanged += new System.EventHandler(this.offsetX_ValueChanged_1); | ||
396 | 572 | // | 553 | // |
397 | 573 | // offsetY | 554 | // offsetY |
398 | 574 | // | 555 | // |
399 | 575 | this.offsetY.DataBindings.Add(new System.Windows.Forms.Binding("Value", global::XiboClient.Properties.Settings.Default, "offsetY", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
400 | 576 | this.offsetY.Location = new System.Drawing.Point(77, 94); | 556 | this.offsetY.Location = new System.Drawing.Point(77, 94); |
401 | 577 | this.offsetY.Maximum = new decimal(new int[] { | 557 | this.offsetY.Maximum = new decimal(new int[] { |
402 | 578 | 10000, | 558 | 10000, |
403 | @@ -582,12 +562,9 @@ | |||
404 | 582 | this.offsetY.Name = "offsetY"; | 562 | this.offsetY.Name = "offsetY"; |
405 | 583 | this.offsetY.Size = new System.Drawing.Size(77, 20); | 563 | this.offsetY.Size = new System.Drawing.Size(77, 20); |
406 | 584 | this.offsetY.TabIndex = 7; | 564 | this.offsetY.TabIndex = 7; |
407 | 585 | this.offsetY.Value = global::XiboClient.Properties.Settings.Default.offsetY; | ||
408 | 586 | this.offsetY.ValueChanged += new System.EventHandler(this.offsetY_ValueChanged_1); | ||
409 | 587 | // | 565 | // |
410 | 588 | // clientHeight | 566 | // clientHeight |
411 | 589 | // | 567 | // |
412 | 590 | this.clientHeight.DataBindings.Add(new System.Windows.Forms.Binding("Value", global::XiboClient.Properties.Settings.Default, "sizeY", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
413 | 591 | this.clientHeight.Location = new System.Drawing.Point(77, 41); | 568 | this.clientHeight.Location = new System.Drawing.Point(77, 41); |
414 | 592 | this.clientHeight.Maximum = new decimal(new int[] { | 569 | this.clientHeight.Maximum = new decimal(new int[] { |
415 | 593 | 10000, | 570 | 10000, |
416 | @@ -597,12 +574,9 @@ | |||
417 | 597 | this.clientHeight.Name = "clientHeight"; | 574 | this.clientHeight.Name = "clientHeight"; |
418 | 598 | this.clientHeight.Size = new System.Drawing.Size(77, 20); | 575 | this.clientHeight.Size = new System.Drawing.Size(77, 20); |
419 | 599 | this.clientHeight.TabIndex = 5; | 576 | this.clientHeight.TabIndex = 5; |
420 | 600 | this.clientHeight.Value = global::XiboClient.Properties.Settings.Default.sizeY; | ||
421 | 601 | this.clientHeight.ValueChanged += new System.EventHandler(this.clientHeight_ValueChanged_1); | ||
422 | 602 | // | 577 | // |
423 | 603 | // clientWidth | 578 | // clientWidth |
424 | 604 | // | 579 | // |
425 | 605 | this.clientWidth.DataBindings.Add(new System.Windows.Forms.Binding("Value", global::XiboClient.Properties.Settings.Default, "sizeX", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
426 | 606 | this.clientWidth.Location = new System.Drawing.Point(77, 15); | 580 | this.clientWidth.Location = new System.Drawing.Point(77, 15); |
427 | 607 | this.clientWidth.Maximum = new decimal(new int[] { | 581 | this.clientWidth.Maximum = new decimal(new int[] { |
428 | 608 | 10000, | 582 | 10000, |
429 | @@ -612,14 +586,13 @@ | |||
430 | 612 | this.clientWidth.Name = "clientWidth"; | 586 | this.clientWidth.Name = "clientWidth"; |
431 | 613 | this.clientWidth.Size = new System.Drawing.Size(77, 20); | 587 | this.clientWidth.Size = new System.Drawing.Size(77, 20); |
432 | 614 | this.clientWidth.TabIndex = 4; | 588 | this.clientWidth.TabIndex = 4; |
433 | 615 | this.clientWidth.Value = global::XiboClient.Properties.Settings.Default.sizeX; | ||
434 | 616 | this.clientWidth.ValueChanged += new System.EventHandler(this.clientWidth_ValueChanged_1); | ||
435 | 617 | // | 589 | // |
436 | 618 | // tabPage5 | 590 | // tabPage5 |
437 | 619 | // | 591 | // |
438 | 592 | this.tabPage5.Controls.Add(this.doubleBufferingCheckBox); | ||
439 | 620 | this.tabPage5.Controls.Add(this.enableMouseCb); | 593 | this.tabPage5.Controls.Add(this.enableMouseCb); |
440 | 621 | this.tabPage5.Controls.Add(this.cbExpireModifiedLayouts); | 594 | this.tabPage5.Controls.Add(this.cbExpireModifiedLayouts); |
442 | 622 | this.tabPage5.Controls.Add(this.numericUpDown1); | 595 | this.tabPage5.Controls.Add(this.numericUpDownEmptyRegions); |
443 | 623 | this.tabPage5.Controls.Add(this.label15); | 596 | this.tabPage5.Controls.Add(this.label15); |
444 | 624 | this.tabPage5.Location = new System.Drawing.Point(4, 22); | 597 | this.tabPage5.Location = new System.Drawing.Point(4, 22); |
445 | 625 | this.tabPage5.Name = "tabPage5"; | 598 | this.tabPage5.Name = "tabPage5"; |
446 | @@ -629,43 +602,51 @@ | |||
447 | 629 | this.tabPage5.Text = "Advanced"; | 602 | this.tabPage5.Text = "Advanced"; |
448 | 630 | this.tabPage5.UseVisualStyleBackColor = true; | 603 | this.tabPage5.UseVisualStyleBackColor = true; |
449 | 631 | // | 604 | // |
450 | 605 | // doubleBufferingCheckBox | ||
451 | 606 | // | ||
452 | 607 | this.doubleBufferingCheckBox.AutoSize = true; | ||
453 | 608 | this.doubleBufferingCheckBox.Location = new System.Drawing.Point(176, 140); | ||
454 | 609 | this.doubleBufferingCheckBox.Name = "doubleBufferingCheckBox"; | ||
455 | 610 | this.doubleBufferingCheckBox.Size = new System.Drawing.Size(141, 17); | ||
456 | 611 | this.doubleBufferingCheckBox.TabIndex = 4; | ||
457 | 612 | this.doubleBufferingCheckBox.Text = "Enable Double Buffering"; | ||
458 | 613 | this.doubleBufferingCheckBox.UseVisualStyleBackColor = true; | ||
459 | 614 | // | ||
460 | 632 | // enableMouseCb | 615 | // enableMouseCb |
461 | 633 | // | 616 | // |
462 | 634 | this.enableMouseCb.AutoSize = true; | 617 | this.enableMouseCb.AutoSize = true; |
464 | 635 | this.enableMouseCb.Checked = global::XiboClient.Properties.Settings.Default.EnableMouse; | 618 | this.enableMouseCb.Checked = true; |
465 | 636 | this.enableMouseCb.CheckState = System.Windows.Forms.CheckState.Checked; | 619 | this.enableMouseCb.CheckState = System.Windows.Forms.CheckState.Checked; |
466 | 637 | this.enableMouseCb.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::XiboClient.Properties.Settings.Default, "EnableMouse", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
467 | 638 | this.enableMouseCb.Location = new System.Drawing.Point(176, 103); | 620 | this.enableMouseCb.Location = new System.Drawing.Point(176, 103); |
468 | 639 | this.enableMouseCb.Name = "enableMouseCb"; | 621 | this.enableMouseCb.Name = "enableMouseCb"; |
469 | 640 | this.enableMouseCb.Size = new System.Drawing.Size(94, 17); | 622 | this.enableMouseCb.Size = new System.Drawing.Size(94, 17); |
470 | 641 | this.enableMouseCb.TabIndex = 3; | 623 | this.enableMouseCb.TabIndex = 3; |
471 | 642 | this.enableMouseCb.Text = "Enable Mouse"; | 624 | this.enableMouseCb.Text = "Enable Mouse"; |
472 | 643 | this.enableMouseCb.UseVisualStyleBackColor = true; | 625 | this.enableMouseCb.UseVisualStyleBackColor = true; |
473 | 644 | this.enableMouseCb.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); | ||
474 | 645 | // | 626 | // |
475 | 646 | // cbExpireModifiedLayouts | 627 | // cbExpireModifiedLayouts |
476 | 647 | // | 628 | // |
477 | 648 | this.cbExpireModifiedLayouts.AutoSize = true; | 629 | this.cbExpireModifiedLayouts.AutoSize = true; |
479 | 649 | this.cbExpireModifiedLayouts.Checked = global::XiboClient.Properties.Settings.Default.expireModifiedLayouts; | 630 | this.cbExpireModifiedLayouts.Checked = true; |
480 | 650 | this.cbExpireModifiedLayouts.CheckState = System.Windows.Forms.CheckState.Checked; | 631 | this.cbExpireModifiedLayouts.CheckState = System.Windows.Forms.CheckState.Checked; |
481 | 651 | this.cbExpireModifiedLayouts.DataBindings.Add(new System.Windows.Forms.Binding("Checked", global::XiboClient.Properties.Settings.Default, "expireModifiedLayouts", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | ||
482 | 652 | this.cbExpireModifiedLayouts.Location = new System.Drawing.Point(176, 66); | 632 | this.cbExpireModifiedLayouts.Location = new System.Drawing.Point(176, 66); |
483 | 653 | this.cbExpireModifiedLayouts.Name = "cbExpireModifiedLayouts"; | 633 | this.cbExpireModifiedLayouts.Name = "cbExpireModifiedLayouts"; |
484 | 654 | this.cbExpireModifiedLayouts.Size = new System.Drawing.Size(243, 17); | 634 | this.cbExpireModifiedLayouts.Size = new System.Drawing.Size(243, 17); |
485 | 655 | this.cbExpireModifiedLayouts.TabIndex = 2; | 635 | this.cbExpireModifiedLayouts.TabIndex = 2; |
486 | 656 | this.cbExpireModifiedLayouts.Text = "Expire modified layouts while they are playing?"; | 636 | this.cbExpireModifiedLayouts.Text = "Expire modified layouts while they are playing?"; |
487 | 657 | this.cbExpireModifiedLayouts.UseVisualStyleBackColor = true; | 637 | this.cbExpireModifiedLayouts.UseVisualStyleBackColor = true; |
499 | 658 | this.cbExpireModifiedLayouts.CheckedChanged += new System.EventHandler(this.cbExpireModifiedLayouts_CheckedChanged); | 638 | // |
500 | 659 | // | 639 | // numericUpDownEmptyRegions |
501 | 660 | // numericUpDown1 | 640 | // |
502 | 661 | // | 641 | this.numericUpDownEmptyRegions.Location = new System.Drawing.Point(176, 23); |
503 | 662 | this.numericUpDown1.DataBindings.Add(new System.Windows.Forms.Binding("Value", global::XiboClient.Properties.Settings.Default, "emptyLayoutDuration", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged)); | 642 | this.numericUpDownEmptyRegions.Name = "numericUpDownEmptyRegions"; |
504 | 663 | this.numericUpDown1.Location = new System.Drawing.Point(176, 23); | 643 | this.numericUpDownEmptyRegions.Size = new System.Drawing.Size(91, 20); |
505 | 664 | this.numericUpDown1.Name = "numericUpDown1"; | 644 | this.numericUpDownEmptyRegions.TabIndex = 1; |
506 | 665 | this.numericUpDown1.Size = new System.Drawing.Size(91, 20); | 645 | this.numericUpDownEmptyRegions.Value = new decimal(new int[] { |
507 | 666 | this.numericUpDown1.TabIndex = 1; | 646 | 10, |
508 | 667 | this.numericUpDown1.Value = global::XiboClient.Properties.Settings.Default.emptyLayoutDuration; | 647 | 0, |
509 | 668 | this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); | 648 | 0, |
510 | 649 | 0}); | ||
511 | 669 | // | 650 | // |
512 | 670 | // label15 | 651 | // label15 |
513 | 671 | // | 652 | // |
514 | @@ -676,16 +657,6 @@ | |||
515 | 676 | this.label15.TabIndex = 0; | 657 | this.label15.TabIndex = 0; |
516 | 677 | this.label15.Text = "Duration for Empty Regions"; | 658 | this.label15.Text = "Duration for Empty Regions"; |
517 | 678 | // | 659 | // |
518 | 679 | // buttonReset | ||
519 | 680 | // | ||
520 | 681 | this.buttonReset.Location = new System.Drawing.Point(281, 320); | ||
521 | 682 | this.buttonReset.Name = "buttonReset"; | ||
522 | 683 | this.buttonReset.Size = new System.Drawing.Size(75, 23); | ||
523 | 684 | this.buttonReset.TabIndex = 11; | ||
524 | 685 | this.buttonReset.Text = "Reset"; | ||
525 | 686 | this.buttonReset.UseVisualStyleBackColor = true; | ||
526 | 687 | this.buttonReset.Click += new System.EventHandler(this.buttonReset_Click); | ||
527 | 688 | // | ||
528 | 689 | // menuStrip1 | 660 | // menuStrip1 |
529 | 690 | // | 661 | // |
530 | 691 | this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { | 662 | this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
531 | @@ -749,7 +720,6 @@ | |||
532 | 749 | this.Controls.Add(this.menuStrip1); | 720 | this.Controls.Add(this.menuStrip1); |
533 | 750 | this.Controls.Add(this.tabControl1); | 721 | this.Controls.Add(this.tabControl1); |
534 | 751 | this.Controls.Add(this.buttonSaveSettings); | 722 | this.Controls.Add(this.buttonSaveSettings); |
535 | 752 | this.Controls.Add(this.buttonReset); | ||
536 | 753 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); | 723 | this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
537 | 754 | this.MainMenuStrip = this.menuStrip1; | 724 | this.MainMenuStrip = this.menuStrip1; |
538 | 755 | this.Name = "OptionForm"; | 725 | this.Name = "OptionForm"; |
539 | @@ -773,7 +743,7 @@ | |||
540 | 773 | ((System.ComponentModel.ISupportInitialize)(this.clientWidth)).EndInit(); | 743 | ((System.ComponentModel.ISupportInitialize)(this.clientWidth)).EndInit(); |
541 | 774 | this.tabPage5.ResumeLayout(false); | 744 | this.tabPage5.ResumeLayout(false); |
542 | 775 | this.tabPage5.PerformLayout(); | 745 | this.tabPage5.PerformLayout(); |
544 | 776 | ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); | 746 | ((System.ComponentModel.ISupportInitialize)(this.numericUpDownEmptyRegions)).EndInit(); |
545 | 777 | this.menuStrip1.ResumeLayout(false); | 747 | this.menuStrip1.ResumeLayout(false); |
546 | 778 | this.menuStrip1.PerformLayout(); | 748 | this.menuStrip1.PerformLayout(); |
547 | 779 | this.ResumeLayout(false); | 749 | this.ResumeLayout(false); |
548 | @@ -810,7 +780,6 @@ | |||
549 | 810 | private System.Windows.Forms.NumericUpDown numericUpDownCollect; | 780 | private System.Windows.Forms.NumericUpDown numericUpDownCollect; |
550 | 811 | private System.Windows.Forms.FolderBrowserDialog folderBrowserLibrary; | 781 | private System.Windows.Forms.FolderBrowserDialog folderBrowserLibrary; |
551 | 812 | private System.Windows.Forms.Button buttonLibrary; | 782 | private System.Windows.Forms.Button buttonLibrary; |
552 | 813 | private System.Windows.Forms.Button buttonReset; | ||
553 | 814 | private System.Windows.Forms.ToolStripMenuItem onlineHelpToolStripMenuItem; | 783 | private System.Windows.Forms.ToolStripMenuItem onlineHelpToolStripMenuItem; |
554 | 815 | private System.Windows.Forms.CheckBox checkBoxPowerPoint; | 784 | private System.Windows.Forms.CheckBox checkBoxPowerPoint; |
555 | 816 | private System.Windows.Forms.CheckBox checkBoxStats; | 785 | private System.Windows.Forms.CheckBox checkBoxStats; |
556 | @@ -838,9 +807,10 @@ | |||
557 | 838 | private System.Windows.Forms.NumericUpDown offsetX; | 807 | private System.Windows.Forms.NumericUpDown offsetX; |
558 | 839 | private System.Windows.Forms.NumericUpDown clientHeight; | 808 | private System.Windows.Forms.NumericUpDown clientHeight; |
559 | 840 | private System.Windows.Forms.TabPage tabPage5; | 809 | private System.Windows.Forms.TabPage tabPage5; |
561 | 841 | private System.Windows.Forms.NumericUpDown numericUpDown1; | 810 | private System.Windows.Forms.NumericUpDown numericUpDownEmptyRegions; |
562 | 842 | private System.Windows.Forms.Label label15; | 811 | private System.Windows.Forms.Label label15; |
563 | 843 | private System.Windows.Forms.CheckBox cbExpireModifiedLayouts; | 812 | private System.Windows.Forms.CheckBox cbExpireModifiedLayouts; |
564 | 844 | private System.Windows.Forms.CheckBox enableMouseCb; | 813 | private System.Windows.Forms.CheckBox enableMouseCb; |
565 | 814 | private System.Windows.Forms.CheckBox doubleBufferingCheckBox; | ||
566 | 845 | } | 815 | } |
567 | 846 | } | 816 | } |
568 | 847 | \ No newline at end of file | 817 | \ No newline at end of file |
569 | 848 | 818 | ||
570 | === modified file 'client/dotNET/OptionForm.cs' | |||
571 | --- client/dotNET/OptionForm.cs 2011-07-16 13:13:44 +0000 | |||
572 | +++ client/dotNET/OptionForm.cs 2012-01-22 15:34:34 +0000 | |||
573 | @@ -1,6 +1,6 @@ | |||
574 | 1 | /* | 1 | /* |
575 | 2 | * Xibo - Digitial Signage - http://www.xibo.org.uk | 2 | * Xibo - Digitial Signage - http://www.xibo.org.uk |
577 | 3 | * Copyright (C) 2006,2007,2008 Daniel Garner and James Packer | 3 | * Copyright (C) 2006-11 Daniel Garner and James Packer |
578 | 4 | * | 4 | * |
579 | 5 | * This file is part of Xibo. | 5 | * This file is part of Xibo. |
580 | 6 | * | 6 | * |
581 | @@ -26,109 +26,86 @@ | |||
582 | 26 | using System.Text; | 26 | using System.Text; |
583 | 27 | using System.Net; | 27 | using System.Net; |
584 | 28 | using System.Windows.Forms; | 28 | using System.Windows.Forms; |
585 | 29 | using XiboClient.Properties; | ||
586 | 30 | using System.Diagnostics; | ||
587 | 29 | 31 | ||
588 | 30 | namespace XiboClient | 32 | namespace XiboClient |
589 | 31 | { | 33 | { |
590 | 32 | public partial class OptionForm : Form | 34 | public partial class OptionForm : Form |
591 | 33 | { | 35 | { |
592 | 36 | private HardwareKey _hardwareKey; | ||
593 | 37 | |||
594 | 38 | |||
595 | 34 | public OptionForm() | 39 | public OptionForm() |
596 | 35 | { | 40 | { |
598 | 36 | System.Diagnostics.Debug.WriteLine("[IN]", "OptionForm"); | 41 | InitializeComponent(); |
599 | 42 | |||
600 | 37 | System.Diagnostics.Debug.WriteLine("Initialise Option Form Components", "OptionForm"); | 43 | System.Diagnostics.Debug.WriteLine("Initialise Option Form Components", "OptionForm"); |
601 | 38 | 44 | ||
602 | 39 | // Get a hardware key here, just in case we havent been able to get one before | 45 | // Get a hardware key here, just in case we havent been able to get one before |
610 | 40 | hardwareKey = new HardwareKey(); | 46 | _hardwareKey = new HardwareKey(); |
611 | 41 | 47 | ||
612 | 42 | InitializeComponent(); | 48 | // XMDS completed event |
613 | 43 | 49 | xmds1.RegisterDisplayCompleted += new XiboClient.xmds.RegisterDisplayCompletedEventHandler(xmds1_RegisterDisplayCompleted); | |
607 | 44 | System.Diagnostics.Debug.WriteLine("Register some Event Handlers", "OptionForm"); | ||
608 | 45 | |||
609 | 46 | this.xmds1.RegisterDisplayCompleted += new XiboClient.xmds.RegisterDisplayCompletedEventHandler(xmds1_RegisterDisplayCompleted); | ||
614 | 47 | 50 | ||
634 | 48 | // Bind some events to the settings fields | 51 | // Library Path |
616 | 49 | textBoxXmdsUri.TextChanged += new EventHandler(setting_TextChanged); | ||
617 | 50 | textBoxServerKey.TextChanged += new EventHandler(setting_TextChanged); | ||
618 | 51 | textBoxLibraryPath.TextChanged += new EventHandler(setting_TextChanged); | ||
619 | 52 | numericUpDownCollect.ValueChanged += new EventHandler(setting_TextChanged); | ||
620 | 53 | nupScrollStepAmount.ValueChanged += new EventHandler(nupScrollStepAmount_ValueChanged); | ||
621 | 54 | |||
622 | 55 | // Bind some events to the proxy settings fields | ||
623 | 56 | textBoxProxyUser.TextChanged += new EventHandler(proxySetting_TextChanged); | ||
624 | 57 | maskedTextBoxProxyPass.TextChanged += new EventHandler(proxySetting_TextChanged); | ||
625 | 58 | textBoxProxyDomain.TextChanged += new EventHandler(proxySetting_TextChanged); | ||
626 | 59 | tbHardwareKey.TextChanged += new EventHandler(tbHardwareKey_TextChanged); | ||
627 | 60 | |||
628 | 61 | clientHeight.ValueChanged += new EventHandler(clientHeight_ValueChanged); | ||
629 | 62 | clientWidth.ValueChanged += new EventHandler(clientWidth_ValueChanged); | ||
630 | 63 | offsetX.ValueChanged += new EventHandler(offsetX_ValueChanged); | ||
631 | 64 | offsetY.ValueChanged += new EventHandler(offsetY_ValueChanged); | ||
632 | 65 | |||
633 | 66 | System.Diagnostics.Debug.WriteLine("Getting the Library Path", "OptionForm"); | ||
635 | 67 | if (Properties.Settings.Default.LibraryPath == "DEFAULT") | 52 | if (Properties.Settings.Default.LibraryPath == "DEFAULT") |
636 | 68 | { | 53 | { |
637 | 54 | Debug.WriteLine("Getting the Library Path", "OptionForm"); | ||
638 | 69 | Properties.Settings.Default.LibraryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Xibo Library"; | 55 | Properties.Settings.Default.LibraryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Xibo Library"; |
639 | 70 | Properties.Settings.Default.Save(); | 56 | Properties.Settings.Default.Save(); |
640 | 71 | } | 57 | } |
641 | 72 | 58 | ||
644 | 73 | System.Diagnostics.Debug.WriteLine("Getting the display Name", "OptionForm"); | 59 | // Computer name if the display name hasnt been set yet |
645 | 74 | if (Properties.Settings.Default.displayName == "COMPUTERNAME") | 60 | if (Settings.Default.displayName == "COMPUTERNAME") |
646 | 75 | { | 61 | { |
649 | 76 | Properties.Settings.Default.displayName = Environment.MachineName; | 62 | Debug.WriteLine("Getting the display Name", "OptionForm"); |
650 | 77 | Properties.Settings.Default.Save(); | 63 | Settings.Default.displayName = Environment.MachineName; |
651 | 64 | Settings.Default.Save(); | ||
652 | 78 | } | 65 | } |
653 | 79 | 66 | ||
655 | 80 | System.Diagnostics.Debug.WriteLine("About to call SetGlobalProxy", "OptionForm"); | 67 | // Set global proxy information |
656 | 81 | OptionForm.SetGlobalProxy(); | 68 | OptionForm.SetGlobalProxy(); |
657 | 82 | 69 | ||
694 | 83 | System.Diagnostics.Debug.WriteLine("[OUT]", "OptionForm"); | 70 | // Settings Tab |
695 | 84 | } | 71 | textBoxXmdsUri.Text = Settings.Default.serverURI; |
696 | 85 | 72 | textBoxServerKey.Text = Settings.Default.ServerKey; | |
697 | 86 | void offsetY_ValueChanged(object sender, EventArgs e) | 73 | textBoxLibraryPath.Text = Settings.Default.LibraryPath; |
698 | 87 | { | 74 | tbHardwareKey.Text = Settings.Default.hardwareKey; |
699 | 88 | buttonSaveSettings.Enabled = true; | 75 | numericUpDownCollect.Value = Settings.Default.collectInterval; |
700 | 89 | } | 76 | checkBoxPowerPoint.Checked = Settings.Default.powerpointEnabled; |
701 | 90 | 77 | checkBoxStats.Checked = Settings.Default.statsEnabled; | |
702 | 91 | void offsetX_ValueChanged(object sender, EventArgs e) | 78 | nupScrollStepAmount.Value = Settings.Default.scrollStepAmount; |
703 | 92 | { | 79 | |
704 | 93 | buttonSaveSettings.Enabled = true; | 80 | // Register Tab |
705 | 94 | } | 81 | labelXmdsUrl.Text = Settings.Default.XiboClient_xmds_xmds; |
706 | 95 | 82 | textBoxDisplayName.Text = Settings.Default.displayName; | |
707 | 96 | void clientWidth_ValueChanged(object sender, EventArgs e) | 83 | |
708 | 97 | { | 84 | // Proxy Tab |
709 | 98 | buttonSaveSettings.Enabled = true; | 85 | textBoxProxyUser.Text = Settings.Default.ProxyUser; |
710 | 99 | } | 86 | maskedTextBoxProxyPass.Text = Settings.Default.ProxyPassword; |
711 | 100 | 87 | textBoxProxyDomain.Text = Settings.Default.ProxyDomain; | |
712 | 101 | void clientHeight_ValueChanged(object sender, EventArgs e) | 88 | |
713 | 102 | { | 89 | // Client Tab |
714 | 103 | buttonSaveSettings.Enabled = true; | 90 | clientWidth.Value = Settings.Default.sizeX; |
715 | 104 | } | 91 | clientHeight.Value = Settings.Default.sizeY; |
716 | 105 | 92 | offsetX.Value = Settings.Default.offsetX; | |
717 | 106 | void nupScrollStepAmount_ValueChanged(object sender, EventArgs e) | 93 | offsetY.Value = Settings.Default.offsetY; |
718 | 107 | { | 94 | |
719 | 108 | buttonSaveSettings.Enabled = true; | 95 | // Advanced Tab |
720 | 109 | } | 96 | numericUpDownEmptyRegions.Value = Settings.Default.emptyLayoutDuration; |
721 | 110 | 97 | cbExpireModifiedLayouts.Checked = Settings.Default.expireModifiedLayouts; | |
722 | 111 | void tbHardwareKey_TextChanged(object sender, EventArgs e) | 98 | enableMouseCb.Checked = Settings.Default.EnableMouse; |
723 | 112 | { | 99 | doubleBufferingCheckBox.Checked = Settings.Default.DoubleBuffering; |
724 | 113 | buttonSaveSettings.Enabled = true; | 100 | |
725 | 114 | } | 101 | System.Diagnostics.Debug.WriteLine("Loaded Options Form", "OptionForm"); |
690 | 115 | |||
691 | 116 | void proxySetting_TextChanged(object sender, EventArgs e) | ||
692 | 117 | { | ||
693 | 118 | buttonSaveSettings.Enabled = true; | ||
726 | 119 | } | 102 | } |
727 | 120 | 103 | ||
728 | 121 | /// <summary> | 104 | /// <summary> |
730 | 122 | /// Fired when a setting is changed | 105 | /// Register display completed |
731 | 123 | /// </summary> | 106 | /// </summary> |
732 | 124 | /// <param name="sender"></param> | 107 | /// <param name="sender"></param> |
733 | 125 | /// <param name="e"></param> | 108 | /// <param name="e"></param> |
734 | 126 | void setting_TextChanged(object sender, EventArgs e) | ||
735 | 127 | { | ||
736 | 128 | //Set the button to be enabled | ||
737 | 129 | buttonSaveSettings.Enabled = true; | ||
738 | 130 | } | ||
739 | 131 | |||
740 | 132 | void xmds1_RegisterDisplayCompleted(object sender, XiboClient.xmds.RegisterDisplayCompletedEventArgs e) | 109 | void xmds1_RegisterDisplayCompleted(object sender, XiboClient.xmds.RegisterDisplayCompletedEventArgs e) |
741 | 133 | { | 110 | { |
742 | 134 | if (e.Error != null) | 111 | if (e.Error != null) |
743 | @@ -145,19 +122,25 @@ | |||
744 | 145 | } | 122 | } |
745 | 146 | } | 123 | } |
746 | 147 | 124 | ||
747 | 125 | /// <summary> | ||
748 | 126 | /// Register display clicked | ||
749 | 127 | /// </summary> | ||
750 | 128 | /// <param name="sender"></param> | ||
751 | 129 | /// <param name="e"></param> | ||
752 | 148 | private void buttonRegister_Click(object sender, EventArgs e) | 130 | private void buttonRegister_Click(object sender, EventArgs e) |
753 | 149 | { | 131 | { |
754 | 150 | // Make a new hardware key just in case we have changed it in the form. | 132 | // Make a new hardware key just in case we have changed it in the form. |
756 | 151 | hardwareKey = new HardwareKey(); | 133 | _hardwareKey = new HardwareKey(); |
757 | 152 | 134 | ||
758 | 153 | textBoxResults.Text = "Sending Request"; | 135 | textBoxResults.Text = "Sending Request"; |
759 | 154 | 136 | ||
761 | 155 | this.xmds1.Url = Properties.Settings.Default.XiboClient_xmds_xmds; | 137 | Settings.Default.XiboClient_xmds_xmds = textBoxXmdsUri.Text.TrimEnd('/') + @"/xmds.php"; |
762 | 138 | xmds1.Url = Settings.Default.XiboClient_xmds_xmds; | ||
763 | 156 | 139 | ||
764 | 157 | Properties.Settings.Default.displayName = textBoxDisplayName.Text; | 140 | Properties.Settings.Default.displayName = textBoxDisplayName.Text; |
765 | 158 | Properties.Settings.Default.Save(); | 141 | Properties.Settings.Default.Save(); |
766 | 159 | 142 | ||
768 | 160 | xmds1.RegisterDisplayAsync(Properties.Settings.Default.ServerKey, hardwareKey.Key, textBoxDisplayName.Text, Properties.Settings.Default.Version); | 143 | xmds1.RegisterDisplayAsync(Properties.Settings.Default.ServerKey, _hardwareKey.Key, textBoxDisplayName.Text, Properties.Settings.Default.Version); |
769 | 161 | } | 144 | } |
770 | 162 | 145 | ||
771 | 163 | /// <summary> | 146 | /// <summary> |
772 | @@ -169,44 +152,43 @@ | |||
773 | 169 | { | 152 | { |
774 | 170 | try | 153 | try |
775 | 171 | { | 154 | { |
776 | 172 | buttonSaveSettings.Enabled = false; | ||
777 | 173 | |||
778 | 174 | // Simple settings | 155 | // Simple settings |
789 | 175 | Properties.Settings.Default.ServerKey = textBoxServerKey.Text; | 156 | Settings.Default.ServerKey = textBoxServerKey.Text; |
790 | 176 | Properties.Settings.Default.LibraryPath = textBoxLibraryPath.Text.TrimEnd('\\'); | 157 | Settings.Default.LibraryPath = textBoxLibraryPath.Text.TrimEnd('\\'); |
791 | 177 | Properties.Settings.Default.serverURI = textBoxXmdsUri.Text; | 158 | Settings.Default.serverURI = textBoxXmdsUri.Text; |
792 | 178 | Properties.Settings.Default.collectInterval = numericUpDownCollect.Value; | 159 | Settings.Default.collectInterval = numericUpDownCollect.Value; |
793 | 179 | Properties.Settings.Default.powerpointEnabled = checkBoxPowerPoint.Checked; | 160 | Settings.Default.powerpointEnabled = checkBoxPowerPoint.Checked; |
794 | 180 | Properties.Settings.Default.statsEnabled = checkBoxStats.Checked; | 161 | Settings.Default.statsEnabled = checkBoxStats.Checked; |
795 | 181 | Properties.Settings.Default.XiboClient_xmds_xmds = textBoxXmdsUri.Text.TrimEnd('/') + @"/xmds.php"; | 162 | Settings.Default.XiboClient_xmds_xmds = textBoxXmdsUri.Text.TrimEnd('/') + @"/xmds.php"; |
796 | 182 | Properties.Settings.Default.hardwareKey = tbHardwareKey.Text; | 163 | Settings.Default.hardwareKey = tbHardwareKey.Text; |
797 | 183 | Properties.Settings.Default.scrollStepAmount = nupScrollStepAmount.Value; | 164 | Settings.Default.scrollStepAmount = nupScrollStepAmount.Value; |
798 | 184 | Properties.Settings.Default.EnableMouse = enableMouseCb.Checked; | 165 | Settings.Default.EnableMouse = enableMouseCb.Checked; |
799 | 166 | Settings.Default.DoubleBuffering = doubleBufferingCheckBox.Checked; | ||
800 | 185 | 167 | ||
801 | 186 | // Also tweak the address of the xmds1 | 168 | // Also tweak the address of the xmds1 |
802 | 187 | xmds1.Url = Properties.Settings.Default.XiboClient_xmds_xmds; | 169 | xmds1.Url = Properties.Settings.Default.XiboClient_xmds_xmds; |
803 | 188 | labelXmdsUrl.Text = Properties.Settings.Default.XiboClient_xmds_xmds; | 170 | labelXmdsUrl.Text = Properties.Settings.Default.XiboClient_xmds_xmds; |
804 | 189 | 171 | ||
805 | 190 | // Proxy Settings | 172 | // Proxy Settings |
809 | 191 | Properties.Settings.Default.ProxyUser = textBoxProxyUser.Text; | 173 | Settings.Default.ProxyUser = textBoxProxyUser.Text; |
810 | 192 | Properties.Settings.Default.ProxyPassword = maskedTextBoxProxyPass.Text; | 174 | Settings.Default.ProxyPassword = maskedTextBoxProxyPass.Text; |
811 | 193 | Properties.Settings.Default.ProxyDomain = textBoxProxyDomain.Text; | 175 | Settings.Default.ProxyDomain = textBoxProxyDomain.Text; |
812 | 194 | 176 | ||
813 | 195 | // Change the default Proxy class | 177 | // Change the default Proxy class |
814 | 196 | OptionForm.SetGlobalProxy(); | 178 | OptionForm.SetGlobalProxy(); |
815 | 197 | 179 | ||
816 | 198 | // Client settings | 180 | // Client settings |
821 | 199 | Properties.Settings.Default.sizeX = clientWidth.Value; | 181 | Settings.Default.sizeX = clientWidth.Value; |
822 | 200 | Properties.Settings.Default.sizeY = clientHeight.Value; | 182 | Settings.Default.sizeY = clientHeight.Value; |
823 | 201 | Properties.Settings.Default.offsetX = offsetX.Value; | 183 | Settings.Default.offsetX = offsetX.Value; |
824 | 202 | Properties.Settings.Default.offsetY = offsetY.Value; | 184 | Settings.Default.offsetY = offsetY.Value; |
825 | 203 | 185 | ||
826 | 204 | // Advanced settings | 186 | // Advanced settings |
829 | 205 | Properties.Settings.Default.expireModifiedLayouts = cbExpireModifiedLayouts.Checked; | 187 | Settings.Default.expireModifiedLayouts = cbExpireModifiedLayouts.Checked; |
830 | 206 | Properties.Settings.Default.emptyLayoutDuration = numericUpDown1.Value; | 188 | Settings.Default.emptyLayoutDuration = numericUpDownEmptyRegions.Value; |
831 | 207 | 189 | ||
832 | 208 | // Commit these changes back to the user settings | 190 | // Commit these changes back to the user settings |
834 | 209 | Properties.Settings.Default.Save(); | 191 | Settings.Default.Save(); |
835 | 210 | } | 192 | } |
836 | 211 | catch (Exception ex) | 193 | catch (Exception ex) |
837 | 212 | { | 194 | { |
838 | @@ -219,7 +201,6 @@ | |||
839 | 219 | this.Close(); | 201 | this.Close(); |
840 | 220 | } | 202 | } |
841 | 221 | 203 | ||
842 | 222 | private HardwareKey hardwareKey; | ||
843 | 223 | 204 | ||
844 | 224 | private void buttonLibrary_Click(object sender, EventArgs e) | 205 | private void buttonLibrary_Click(object sender, EventArgs e) |
845 | 225 | { | 206 | { |
846 | @@ -233,25 +214,12 @@ | |||
847 | 233 | } | 214 | } |
848 | 234 | } | 215 | } |
849 | 235 | 216 | ||
850 | 236 | private void buttonReset_Click(object sender, EventArgs e) | ||
851 | 237 | { | ||
852 | 238 | if (MessageBox.Show("Reset to Default Settings?", "Xibo: Are you sure", MessageBoxButtons.YesNo) == DialogResult.Yes) | ||
853 | 239 | { | ||
854 | 240 | Properties.Settings.Default.Reset(); | ||
855 | 241 | } | ||
856 | 242 | |||
857 | 243 | // Make sure the special settings are delt with | ||
858 | 244 | Properties.Settings.Default.LibraryPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\Xibo Library"; | ||
859 | 245 | Properties.Settings.Default.displayName = Environment.MachineName; | ||
860 | 246 | Properties.Settings.Default.Save(); | ||
861 | 247 | } | ||
862 | 248 | |||
863 | 249 | private void onlineHelpToolStripMenuItem_Click(object sender, EventArgs e) | 217 | private void onlineHelpToolStripMenuItem_Click(object sender, EventArgs e) |
864 | 250 | { | 218 | { |
865 | 251 | // open URL in separate instance of default browser | 219 | // open URL in separate instance of default browser |
866 | 252 | try | 220 | try |
867 | 253 | { | 221 | { |
869 | 254 | System.Diagnostics.Process.Start("http://www.xibo.org.uk/manual"); | 222 | System.Diagnostics.Process.Start("http://wiki.xibo.org.uk/wiki/Manual:TOC"); |
870 | 255 | } | 223 | } |
871 | 256 | catch | 224 | catch |
872 | 257 | { | 225 | { |
873 | @@ -265,31 +233,6 @@ | |||
874 | 265 | about.ShowDialog(); | 233 | about.ShowDialog(); |
875 | 266 | } | 234 | } |
876 | 267 | 235 | ||
877 | 268 | private void checkBoxPowerPoint_CheckedChanged(object sender, EventArgs e) | ||
878 | 269 | { | ||
879 | 270 | buttonSaveSettings.Enabled = true; | ||
880 | 271 | |||
881 | 272 | if (checkBoxPowerPoint.Checked) | ||
882 | 273 | { | ||
883 | 274 | // PowerPoint enabled | ||
884 | 275 | // check for it installed | ||
885 | 276 | |||
886 | 277 | // enable the IE setting? | ||
887 | 278 | } | ||
888 | 279 | |||
889 | 280 | return; | ||
890 | 281 | } | ||
891 | 282 | |||
892 | 283 | private void checkBoxStats_CheckedChanged(object sender, EventArgs e) | ||
893 | 284 | { | ||
894 | 285 | buttonSaveSettings.Enabled = true; | ||
895 | 286 | } | ||
896 | 287 | |||
897 | 288 | private void checkBoxAudit_CheckedChanged(object sender, EventArgs e) | ||
898 | 289 | { | ||
899 | 290 | buttonSaveSettings.Enabled = true; | ||
900 | 291 | } | ||
901 | 292 | |||
902 | 293 | private void buttonDisplayAdmin_Click(object sender, EventArgs e) | 236 | private void buttonDisplayAdmin_Click(object sender, EventArgs e) |
903 | 294 | { | 237 | { |
904 | 295 | // open URL in separate instance of default browser | 238 | // open URL in separate instance of default browser |
905 | @@ -303,97 +246,58 @@ | |||
906 | 303 | } | 246 | } |
907 | 304 | } | 247 | } |
908 | 305 | 248 | ||
909 | 306 | private void buttonProxySave_Click(object sender, EventArgs e) | ||
910 | 307 | { | ||
911 | 308 | |||
912 | 309 | } | ||
913 | 310 | |||
914 | 311 | /// <summary> | 249 | /// <summary> |
915 | 312 | /// Sets up the global proxy | 250 | /// Sets up the global proxy |
916 | 313 | /// </summary> | 251 | /// </summary> |
917 | 314 | public static void SetGlobalProxy() | 252 | public static void SetGlobalProxy() |
918 | 315 | { | 253 | { |
920 | 316 | System.Diagnostics.Debug.WriteLine("[IN]", "SetGlobalProxy"); | 254 | Debug.WriteLine("[IN]", "SetGlobalProxy"); |
921 | 317 | 255 | ||
923 | 318 | System.Diagnostics.Debug.WriteLine("Trying to detect a proxy.", "SetGlobalProxy"); | 256 | Debug.WriteLine("Trying to detect a proxy.", "SetGlobalProxy"); |
924 | 319 | 257 | ||
925 | 320 | if (Properties.Settings.Default.ProxyUser != "") | 258 | if (Properties.Settings.Default.ProxyUser != "") |
926 | 321 | { | 259 | { |
930 | 322 | System.Diagnostics.Debug.WriteLine("Creating a network credential using the Proxy User.", "SetGlobalProxy"); | 260 | // disable expect100Continue |
931 | 323 | NetworkCredential nc = new NetworkCredential(Properties.Settings.Default.ProxyUser, Properties.Settings.Default.ProxyPassword); | 261 | ServicePointManager.Expect100Continue = false; |
932 | 324 | if (Properties.Settings.Default.ProxyDomain != "") nc.Domain = Properties.Settings.Default.ProxyDomain; | 262 | |
933 | 263 | Debug.WriteLine("Creating a network credential using the Proxy User.", "SetGlobalProxy"); | ||
934 | 264 | |||
935 | 265 | NetworkCredential nc = new NetworkCredential(Settings.Default.ProxyUser, Settings.Default.ProxyPassword); | ||
936 | 266 | |||
937 | 267 | if (Properties.Settings.Default.ProxyDomain != "") | ||
938 | 268 | nc.Domain = Properties.Settings.Default.ProxyDomain; | ||
939 | 325 | 269 | ||
940 | 326 | WebRequest.DefaultWebProxy.Credentials = nc; | 270 | WebRequest.DefaultWebProxy.Credentials = nc; |
941 | 327 | } | 271 | } |
942 | 328 | else | 272 | else |
943 | 329 | { | 273 | { |
945 | 330 | System.Diagnostics.Debug.WriteLine("No Proxy.", "SetGlobalProxy"); | 274 | Debug.WriteLine("No Proxy.", "SetGlobalProxy"); |
946 | 331 | WebRequest.DefaultWebProxy.Credentials = null; | 275 | WebRequest.DefaultWebProxy.Credentials = null; |
947 | 332 | } | 276 | } |
948 | 333 | 277 | ||
949 | 334 | // What if the URL for XMDS has a SSL certificate? | 278 | // What if the URL for XMDS has a SSL certificate? |
950 | 335 | ServicePointManager.ServerCertificateValidationCallback += delegate(object sender, X509Certificate certificate, X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors) | 279 | ServicePointManager.ServerCertificateValidationCallback += delegate(object sender, X509Certificate certificate, X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors) |
951 | 336 | { | 280 | { |
953 | 337 | System.Diagnostics.Debug.WriteLine("[IN]", "ServerCertificateValidationCallback"); | 281 | Debug.WriteLine("[IN]", "ServerCertificateValidationCallback"); |
954 | 338 | bool validationResult = false; | 282 | bool validationResult = false; |
955 | 339 | 283 | ||
958 | 340 | System.Diagnostics.Debug.WriteLine(certificate.Subject); | 284 | Debug.WriteLine(certificate.Subject); |
959 | 341 | System.Diagnostics.Debug.WriteLine(certificate.Issuer); | 285 | Debug.WriteLine(certificate.Issuer); |
960 | 342 | 286 | ||
961 | 343 | if (sslPolicyErrors != System.Net.Security.SslPolicyErrors.None) | 287 | if (sslPolicyErrors != System.Net.Security.SslPolicyErrors.None) |
962 | 344 | { | 288 | { |
964 | 345 | System.Diagnostics.Debug.WriteLine(sslPolicyErrors.ToString()); | 289 | Debug.WriteLine(sslPolicyErrors.ToString()); |
965 | 346 | } | 290 | } |
966 | 347 | 291 | ||
967 | 348 | validationResult = true; | 292 | validationResult = true; |
968 | 349 | 293 | ||
970 | 350 | System.Diagnostics.Debug.WriteLine("[OUT]", "ServerCertificateValidationCallback"); | 294 | Debug.WriteLine("[OUT]", "ServerCertificateValidationCallback"); |
971 | 351 | return validationResult; | 295 | return validationResult; |
972 | 352 | }; | 296 | }; |
973 | 353 | 297 | ||
975 | 354 | System.Diagnostics.Debug.WriteLine("[OUT]", "SetGlobalProxy"); | 298 | Debug.WriteLine("[OUT]", "SetGlobalProxy"); |
976 | 355 | 299 | ||
977 | 356 | return; | 300 | return; |
978 | 357 | } | 301 | } |
979 | 358 | |||
980 | 359 | private void numericUpDown1_ValueChanged(object sender, EventArgs e) | ||
981 | 360 | { | ||
982 | 361 | buttonSaveSettings.Enabled = true; | ||
983 | 362 | } | ||
984 | 363 | |||
985 | 364 | private void cbExpireModifiedLayouts_CheckedChanged(object sender, EventArgs e) | ||
986 | 365 | { | ||
987 | 366 | buttonSaveSettings.Enabled = true; | ||
988 | 367 | } | ||
989 | 368 | |||
990 | 369 | private void clientWidth_ValueChanged_1(object sender, EventArgs e) | ||
991 | 370 | { | ||
992 | 371 | buttonSaveSettings.Enabled = true; | ||
993 | 372 | } | ||
994 | 373 | |||
995 | 374 | private void clientHeight_ValueChanged_1(object sender, EventArgs e) | ||
996 | 375 | { | ||
997 | 376 | buttonSaveSettings.Enabled = true; | ||
998 | 377 | } | ||
999 | 378 | |||
1000 | 379 | private void offsetX_ValueChanged_1(object sender, EventArgs e) | ||
1001 | 380 | { | ||
1002 | 381 | buttonSaveSettings.Enabled = true; | ||
1003 | 382 | } | ||
1004 | 383 | |||
1005 | 384 | private void offsetY_ValueChanged_1(object sender, EventArgs e) | ||
1006 | 385 | { | ||
1007 | 386 | buttonSaveSettings.Enabled = true; | ||
1008 | 387 | } | ||
1009 | 388 | |||
1010 | 389 | private void textBoxDisplayName_TextChanged(object sender, EventArgs e) | ||
1011 | 390 | { | ||
1012 | 391 | buttonSaveSettings.Enabled = true; | ||
1013 | 392 | } | ||
1014 | 393 | |||
1015 | 394 | private void checkBox1_CheckedChanged(object sender, EventArgs e) | ||
1016 | 395 | { | ||
1017 | 396 | buttonSaveSettings.Enabled = true; | ||
1018 | 397 | } | ||
1019 | 398 | } | 302 | } |
1020 | 399 | } | 303 | } |
1021 | 400 | \ No newline at end of file | 304 | \ No newline at end of file |
1022 | 401 | 305 | ||
1023 | === modified file 'client/dotNET/Properties/Settings.Designer.cs' | |||
1024 | --- client/dotNET/Properties/Settings.Designer.cs 2011-09-24 11:06:51 +0000 | |||
1025 | +++ client/dotNET/Properties/Settings.Designer.cs 2012-01-22 15:34:34 +0000 | |||
1026 | @@ -1,7 +1,7 @@ | |||
1027 | 1 | //------------------------------------------------------------------------------ | 1 | //------------------------------------------------------------------------------ |
1028 | 2 | // <auto-generated> | 2 | // <auto-generated> |
1029 | 3 | // This code was generated by a tool. | 3 | // This code was generated by a tool. |
1031 | 4 | // Runtime Version:2.0.50727.4961 | 4 | // Runtime Version:2.0.50727.5448 |
1032 | 5 | // | 5 | // |
1033 | 6 | // Changes to this file may cause incorrect behavior and will be lost if | 6 | // Changes to this file may cause incorrect behavior and will be lost if |
1034 | 7 | // the code is regenerated. | 7 | // the code is regenerated. |
1035 | @@ -394,5 +394,17 @@ | |||
1036 | 394 | this["EnableMouse"] = value; | 394 | this["EnableMouse"] = value; |
1037 | 395 | } | 395 | } |
1038 | 396 | } | 396 | } |
1039 | 397 | |||
1040 | 398 | [global::System.Configuration.UserScopedSettingAttribute()] | ||
1041 | 399 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
1042 | 400 | [global::System.Configuration.DefaultSettingValueAttribute("True")] | ||
1043 | 401 | public bool DoubleBuffering { | ||
1044 | 402 | get { | ||
1045 | 403 | return ((bool)(this["DoubleBuffering"])); | ||
1046 | 404 | } | ||
1047 | 405 | set { | ||
1048 | 406 | this["DoubleBuffering"] = value; | ||
1049 | 407 | } | ||
1050 | 408 | } | ||
1051 | 397 | } | 409 | } |
1052 | 398 | } | 410 | } |
1053 | 399 | 411 | ||
1054 | === modified file 'client/dotNET/Properties/Settings.settings' | |||
1055 | --- client/dotNET/Properties/Settings.settings 2011-09-24 11:06:51 +0000 | |||
1056 | +++ client/dotNET/Properties/Settings.settings 2012-01-22 15:34:34 +0000 | |||
1057 | @@ -101,5 +101,8 @@ | |||
1058 | 101 | <Setting Name="EnableMouse" Type="System.Boolean" Scope="User"> | 101 | <Setting Name="EnableMouse" Type="System.Boolean" Scope="User"> |
1059 | 102 | <Value Profile="(Default)">False</Value> | 102 | <Value Profile="(Default)">False</Value> |
1060 | 103 | </Setting> | 103 | </Setting> |
1061 | 104 | <Setting Name="DoubleBuffering" Type="System.Boolean" Scope="User"> | ||
1062 | 105 | <Value Profile="(Default)">True</Value> | ||
1063 | 106 | </Setting> | ||
1064 | 104 | </Settings> | 107 | </Settings> |
1065 | 105 | </SettingsFile> | 108 | </SettingsFile> |
1066 | 106 | \ No newline at end of file | 109 | \ No newline at end of file |
1067 | 107 | 110 | ||
1068 | === modified file 'client/dotNET/Region.cs' | |||
1069 | --- client/dotNET/Region.cs 2011-09-06 20:46:43 +0000 | |||
1070 | +++ client/dotNET/Region.cs 2012-01-22 15:34:34 +0000 | |||
1071 | @@ -23,6 +23,7 @@ | |||
1072 | 23 | using System.Windows.Forms; | 23 | using System.Windows.Forms; |
1073 | 24 | using System.Xml; | 24 | using System.Xml; |
1074 | 25 | using System.Diagnostics; | 25 | using System.Diagnostics; |
1075 | 26 | using XiboClient.Properties; | ||
1076 | 26 | 27 | ||
1077 | 27 | namespace XiboClient | 28 | namespace XiboClient |
1078 | 28 | { | 29 | { |
1079 | @@ -68,8 +69,11 @@ | |||
1080 | 68 | this.Size = new System.Drawing.Size(options.width, options.height); | 69 | this.Size = new System.Drawing.Size(options.width, options.height); |
1081 | 69 | this.BackColor = System.Drawing.Color.Transparent; | 70 | this.BackColor = System.Drawing.Color.Transparent; |
1082 | 70 | 71 | ||
1085 | 71 | SetStyle(ControlStyles.OptimizedDoubleBuffer, true); | 72 | if (Settings.Default.DoubleBuffering) |
1086 | 72 | SetStyle(ControlStyles.AllPaintingInWmPaint, true); | 73 | { |
1087 | 74 | SetStyle(ControlStyles.OptimizedDoubleBuffer, true); | ||
1088 | 75 | SetStyle(ControlStyles.AllPaintingInWmPaint, true); | ||
1089 | 76 | } | ||
1090 | 73 | 77 | ||
1091 | 74 | // Create a new BlackList for us to use | 78 | // Create a new BlackList for us to use |
1092 | 75 | blackList = new BlackList(); | 79 | blackList = new BlackList(); |
1093 | 76 | 80 | ||
1094 | === modified file 'client/dotNET/RequiredFiles.cs' | |||
1095 | --- client/dotNET/RequiredFiles.cs 2011-02-16 11:25:56 +0000 | |||
1096 | +++ client/dotNET/RequiredFiles.cs 2012-01-22 15:34:34 +0000 | |||
1097 | @@ -187,7 +187,7 @@ | |||
1098 | 187 | rf.FileType, rf.Id.ToString(), rf.Complete.ToString(), rf.LastChecked.ToString(), rf.Md5); | 187 | rf.FileType, rf.Id.ToString(), rf.Complete.ToString(), rf.LastChecked.ToString(), rf.Md5); |
1099 | 188 | } | 188 | } |
1100 | 189 | 189 | ||
1102 | 190 | xml = string.Format("<files>{0}</files>", xml); | 190 | xml = string.Format("<files macAddress=\"{1}\">{0}</files>", xml, hardwareKey.MacAddress); |
1103 | 191 | 191 | ||
1104 | 192 | _report.MediaInventoryAsync(Properties.Settings.Default.Version, Properties.Settings.Default.ServerKey, | 192 | _report.MediaInventoryAsync(Properties.Settings.Default.Version, Properties.Settings.Default.ServerKey, |
1105 | 193 | hardwareKey.Key, xml); | 193 | hardwareKey.Key, xml); |
1106 | 194 | 194 | ||
1107 | === modified file 'client/dotNET/app.config' | |||
1108 | --- client/dotNET/app.config 2011-09-24 11:06:51 +0000 | |||
1109 | +++ client/dotNET/app.config 2012-01-22 15:34:34 +0000 | |||
1110 | @@ -85,6 +85,9 @@ | |||
1111 | 85 | <setting name="EnableMouse" serializeAs="String"> | 85 | <setting name="EnableMouse" serializeAs="String"> |
1112 | 86 | <value>False</value> | 86 | <value>False</value> |
1113 | 87 | </setting> | 87 | </setting> |
1114 | 88 | <setting name="DoubleBuffering" serializeAs="String"> | ||
1115 | 89 | <value>True</value> | ||
1116 | 90 | </setting> | ||
1117 | 88 | </XiboClient.Properties.Settings> | 91 | </XiboClient.Properties.Settings> |
1118 | 89 | </userSettings> | 92 | </userSettings> |
1119 | 90 | <applicationSettings> | 93 | <applicationSettings> |