forked from ventrian/Simple-Gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RandomPhotoOptions.ascx.vb
executable file
·521 lines (391 loc) · 23.8 KB
/
RandomPhotoOptions.ascx.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
'
' Simple Gallery for DotNetNuke - http://www.dotnetnuke.com
' Copyright (c) 2002-2007
' by Ventrian ( [email protected] ) ( http://www.ventrian.com )
'
Imports System.IO
Imports DotNetNuke.Common
Imports DotNetNuke.Common.Utilities
Imports DotNetNuke.Entities.Modules
Imports DotNetNuke.Entities.Modules.Definitions
Imports DotNetNuke.Entities.Tabs
Imports DotNetNuke.Security
Imports DotNetNuke.Security.Permissions
Imports DotNetNuke.Security.Roles
Imports DotNetNuke.Services.Exceptions
Imports DotNetNuke.Services.Localization
Imports Ventrian.SimpleGallery.Common
Imports Ventrian.SimpleGallery.Entities
Namespace Ventrian.SimpleGallery
Partial Public Class RandomPhotoOptions
Inherits ModuleSettingsBase
#Region " Private Members "
Private _gallerySettings As GallerySettings
#End Region
#Region " Private Properties "
Public ReadOnly Property GallerySettings() As Entities.GallerySettings
Get
If (_gallerySettings Is Nothing) Then
_gallerySettings = New Entities.GallerySettings(Settings)
End If
Return _gallerySettings
End Get
End Property
#End Region
#Region " Private Methods "
Private Sub BindModes()
For Each value As Integer In System.Enum.GetValues(GetType(ModeType))
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(ModeType), value)
li.Text = Localization.GetString(System.Enum.GetName(GetType(ModeType), value), Me.LocalResourceFile)
rdoMode.Items.Add(li)
Next
End Sub
Private Sub BindPublicMode()
For Each value As Integer In System.Enum.GetValues(GetType(PublicModeType))
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(PublicModeType), value)
li.Text = Localization.GetString(System.Enum.GetName(GetType(PublicModeType), value), Me.LocalResourceFile)
rdoPublicMode.Items.Add(li)
Next
End Sub
Private Sub BindDisplay()
For Each value As Integer In System.Enum.GetValues(GetType(DisplayType))
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(DisplayType), value)
li.Text = Localization.GetString("Display-" & System.Enum.GetName(GetType(DisplayType), value), Me.LocalResourceFile)
rdoDisplay.Items.Add(li)
Next
End Sub
Private Sub BindRepeatDirection()
For Each value As Integer In System.Enum.GetValues(GetType(RepeatDirection))
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(RepeatDirection), value)
li.Text = Localization.GetString(System.Enum.GetName(GetType(RepeatDirection), value), Me.LocalResourceFile)
drpRepeatDirection.Items.Add(li)
Next
End Sub
Private Sub BindTemplateType()
For Each value As Integer In System.Enum.GetValues(GetType(TemplateModeType))
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(TemplateModeType), value)
li.Text = Localization.GetString("Template-" & System.Enum.GetName(GetType(TemplateModeType), value), Me.LocalResourceFile)
rdoTemplateType.Items.Add(li)
Next
End Sub
Private Sub BindModules()
Dim objDesktopModuleInfo As DesktopModuleInfo = DesktopModuleController.GetDesktopModuleByModuleName("SimpleGallery", PortalId)
If Not (objDesktopModuleInfo Is Nothing) Then
Dim objTabController As New TabController()
Dim objTabs As TabCollection = objTabController.GetTabsByPortal(PortalId)
For Each objTab As TabInfo In objTabs.Values
If Not (objTab Is Nothing) Then
If (objTab.IsDeleted = False) Then
Dim objModules As New ModuleController
For Each pair As KeyValuePair(Of Integer, ModuleInfo) In objModules.GetTabModules(objTab.TabID)
Dim objModule As ModuleInfo = pair.Value
If (objModule.IsDeleted = False) Then
If (objModule.DesktopModuleID = objDesktopModuleInfo.DesktopModuleID) Then
If ModulePermissionController.CanEditModuleContent(objModule) = True And objModule.IsDeleted = False Then
Dim strPath As String = objTab.TabName
Dim objTabSelected As TabInfo = objTab
While objTabSelected.ParentId <> Null.NullInteger
objTabSelected = objTabController.GetTab(objTabSelected.ParentId, objTab.PortalID, False)
If (objTabSelected Is Nothing) Then
Exit While
End If
strPath = objTabSelected.TabName & " -> " & strPath
End While
Dim objListItem As New ListItem
objListItem.Value = objModule.TabID.ToString() & "-" & objModule.ModuleID.ToString()
objListItem.Text = strPath & " -> " & objModule.ModuleTitle
drpModuleID.Items.Add(objListItem)
End If
End If
End If
Next
End If
End If
Next
End If
If (drpModuleID.Items.Count > 0) Then
BindAlbums()
End If
End Sub
Private Sub BindBorderStyles()
Dim templateRoot As String = Me.MapPath("Images/Borders")
If Directory.Exists(templateRoot) Then
Dim arrFolders() As String = Directory.GetDirectories(templateRoot)
For Each folder As String In arrFolders
Dim folderName As String = folder.Substring(folder.LastIndexOf("\") + 1)
Dim objListItem As ListItem = New ListItem
objListItem.Text = folderName
objListItem.Value = folderName
drpBorderStyle.Items.Add(objListItem)
Next
End If
End Sub
Private Sub BindAlbums()
If (drpModuleID.Items.Count > 0) Then
Dim objAlbumController As New AlbumController
Dim values As String() = drpModuleID.SelectedValue.Split(Convert.ToChar("-"))
Dim ShowPublicOnly As Boolean = True
'Controllo se c'è un setting nel caso del primo caricamento
If (Settings.Contains(Constants.SETTING_PUBLIC_MODE)) Then
If Settings(Constants.SETTING_PUBLIC_MODE).ToString() <> PublicModeType.ShowPublic.ToString() Then
ShowPublicOnly = False
End If
End If
'Se c'è ua variazione nel valore selezionato sovrascrivo il setting
If Not (rdoPublicMode.SelectedValue = "") Then
If rdoPublicMode.SelectedValue.ToString() = PublicModeType.ShowPublic.ToString() Then
ShowPublicOnly = True
Else
ShowPublicOnly = False
End If
End If
drpAlbums.DataSource = objAlbumController.List(Convert.ToInt32(values(1)), Null.NullInteger, ShowPublicOnly, True, AlbumSortType.Caption, SortDirection.ASC)
drpAlbums.DataBind()
drpAlbums.Items.Insert(0, New ListItem(Localization.GetString("AllAlbums", Me.LocalResourceFile), "-1"))
End If
End Sub
Private Sub BindCompressionType()
For Each value As Integer In System.Enum.GetValues(GetType(CompressionType))
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(CompressionType), value)
li.Text = Localization.GetString(System.Enum.GetName(GetType(CompressionType), value), Me.LocalResourceFile)
drpCompressionType.Items.Add(li)
Next
End Sub
Private Sub BindThumbnailType()
For Each value As Integer In System.Enum.GetValues(GetType(ThumbnailType))
Dim li As New ListItem
li.Value = System.Enum.GetName(GetType(ThumbnailType), value)
li.Text = Localization.GetString(System.Enum.GetName(GetType(ThumbnailType), value), Me.LocalResourceFile)
rdoThumbnailType.Items.Add(li)
Next
End Sub
Private Sub BindTokens()
If (trPhotoTemplate.Visible) Then
For Each templateTokenType As TemplateTokenPhotoInfo In System.Enum.GetValues(GetType(TemplateTokenPhotoInfo))
Dim objColumn1 As New HtmlTableCell
Dim objColumn2 As New HtmlTableCell
objColumn1.Width = "200px"
objColumn1.Attributes.Add("Class", "SubHead")
objColumn1.InnerHtml = "[" & templateTokenType.ToString() & "]"
objColumn2.Attributes.Add("Class", "Normal")
objColumn2.InnerHtml = Localization.GetString(templateTokenType.ToString(), Me.LocalResourceFile)
Dim objRow As New HtmlTableRow
objRow.Cells.Add(objColumn1)
objRow.Cells.Add(objColumn2)
tblTemplateSettings.Rows.Add(objRow)
Next
Else
For Each templateTokenType As TemplateTokenAlbumInfo In System.Enum.GetValues(GetType(TemplateTokenAlbumInfo))
Dim objColumn1 As New HtmlTableCell
Dim objColumn2 As New HtmlTableCell
objColumn1.Width = "200px"
objColumn1.Attributes.Add("Class", "SubHead")
objColumn1.InnerHtml = "[" & templateTokenType.ToString() & "]"
objColumn2.Attributes.Add("Class", "Normal")
If (templateTokenType.ToString() = "EDIT" Or templateTokenType.ToString() = "TITLE" Or templateTokenType.ToString() = "DESCRIPTION" Or templateTokenType.ToString() = "DATECREATED") Then
objColumn2.InnerHtml = Localization.GetString("Album-" & templateTokenType.ToString(), Me.LocalResourceFile)
Else
objColumn2.InnerHtml = Localization.GetString(templateTokenType.ToString(), Me.LocalResourceFile)
End If
Dim objRow As New HtmlTableRow
objRow.Cells.Add(objColumn1)
objRow.Cells.Add(objColumn2)
tblTemplateSettings.Rows.Add(objRow)
Next
End If
End Sub
Private Sub BindSettings()
BindThumbnailType()
If (Settings.Contains(Constants.SETTING_RANDOM_PHOTO_MODULE_ID) And Settings.Contains(Constants.SETTING_RANDOM_PHOTO_TAB_ID)) Then
If Not (drpModuleID.Items.FindByValue(Settings(Constants.SETTING_RANDOM_PHOTO_TAB_ID).ToString() & "-" & Settings(Constants.SETTING_RANDOM_PHOTO_MODULE_ID).ToString()) Is Nothing) Then
drpModuleID.SelectedValue = Settings(Constants.SETTING_RANDOM_PHOTO_TAB_ID).ToString() & "-" & Settings(Constants.SETTING_RANDOM_PHOTO_MODULE_ID).ToString()
End If
BindAlbums()
End If
If (Settings.Contains(Constants.SETTING_RANDOM_PHOTO_ALBUM_ID)) Then
If Not (drpAlbums.Items.FindByValue(Settings(Constants.SETTING_RANDOM_PHOTO_ALBUM_ID).ToString()) Is Nothing) Then
drpAlbums.SelectedValue = Settings(Constants.SETTING_RANDOM_PHOTO_ALBUM_ID).ToString()
End If
End If
If (Settings.Contains(Constants.SETTING_BORDER_STYLE)) Then
If Not (drpBorderStyle.Items.FindByValue(Settings(Constants.SETTING_BORDER_STYLE).ToString()) Is Nothing) Then
drpBorderStyle.SelectedValue = Settings(Constants.SETTING_BORDER_STYLE).ToString()
End If
Else
If Not (drpBorderStyle.Items.FindByValue(Constants.DEFAULT_BORDER_STYLE.ToString()) Is Nothing) Then
drpBorderStyle.SelectedValue = Constants.DEFAULT_BORDER_STYLE
End If
End If
If Not (rdoMode.Items.FindByValue(Me.GallerySettings.RandomMode.ToString()) Is Nothing) Then
rdoMode.SelectedValue = Me.GallerySettings.RandomMode.ToString()
End If
If Not (rdoPublicMode.Items.FindByValue(Me.GallerySettings.PublicMode.ToString()) Is Nothing) Then
rdoPublicMode.SelectedValue = Me.GallerySettings.PublicMode.ToString()
End If
If Not (rdoDisplay.Items.FindByValue(Me.GallerySettings.RandomDisplay.ToString()) Is Nothing) Then
rdoDisplay.SelectedValue = Me.GallerySettings.RandomDisplay.ToString()
End If
SetTemplateVisibility()
txtMaxCount.Text = Me.GallerySettings.RandomMaxCount.ToString()
Dim objTagController As New TagController()
If (Me.GallerySettings.RandomTagFilter <> Null.NullInteger) Then
Dim objTag As TagInfo = objTagController.Get(Me.GallerySettings.RandomTagFilter)
If (objTag IsNot Nothing) Then
txtTagFilter.Text = objTag.Name
End If
End If
If Not (drpRepeatDirection.Items.FindByValue(Me.GallerySettings.RandomRepeatDirection.ToString()) Is Nothing) Then
drpRepeatDirection.SelectedValue = Me.GallerySettings.RandomRepeatDirection.ToString()
End If
txtRepeatColumns.Text = Me.GallerySettings.RandomRepeatColumns.ToString()
txtWidth.Text = Me.GallerySettings.RandomWidth.ToString()
txtHeight.Text = Me.GallerySettings.RandomHeight.ToString()
txtSquare.Text = Me.GallerySettings.RandomSquare.ToString()
txtPhotoTemplate.Text = Me.GallerySettings.RandomTemplate
txtAlbumTemplate.Text = Me.GallerySettings.RandomTemplateAlbum
txtTemplateHeader.Text = Me.GallerySettings.TemplateHeader
txtTemplateFooter.Text = Me.GallerySettings.TemplateFooter
chkLaunchSlideshow.Checked = Me.GallerySettings.RandomLaunchSlideshow
chkAlbumSlideshow.Checked = Me.GallerySettings.RandomAlbumSlideshow
chkIncludeJQuery.Checked = Me.GallerySettings.RandomIncludeJQuery
If (Settings.Contains(Constants.SETTING_RANDOM_COMPRESSION)) Then
If Not (drpCompressionType.Items.FindByValue(Settings(Constants.SETTING_RANDOM_COMPRESSION).ToString()) Is Nothing) Then
drpCompressionType.SelectedValue = Settings(Constants.SETTING_RANDOM_COMPRESSION).ToString()
End If
Else
If Not (drpCompressionType.Items.FindByValue(Constants.DEFAULT_RANDOM_COMPRESSION.ToString()) Is Nothing) Then
drpCompressionType.SelectedValue = Constants.DEFAULT_RANDOM_COMPRESSION
End If
End If
If Not (rdoThumbnailType.Items.FindByValue(Me.GallerySettings.RandomThumbnail.ToString()) Is Nothing) Then
rdoThumbnailType.SelectedValue = Me.GallerySettings.RandomThumbnail.ToString()
End If
If Not (rdoTemplateType.Items.FindByValue(Me.GallerySettings.RandomTemplateMode.ToString()) Is Nothing) Then
rdoTemplateType.SelectedValue = Me.GallerySettings.RandomTemplateMode.ToString()
End If
End Sub
Private Sub SaveSettings()
Dim objModuleController As New ModuleController
Dim moduleID As Integer = Null.NullInteger
If (drpModuleID.Items.Count > 0) Then
Dim values As String() = drpModuleID.SelectedValue.Split(Convert.ToChar("-"))
If (values.Length = 2) Then
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_PHOTO_TAB_ID, values(0))
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_PHOTO_MODULE_ID, values(1))
moduleID = values(1)
End If
End If
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_PHOTO_ALBUM_ID, drpAlbums.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_BORDER_STYLE, drpBorderStyle.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_MODE, rdoMode.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_PUBLIC_MODE, rdoPublicMode.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_DISPLAY, rdoDisplay.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_MAX_COUNT, txtMaxCount.Text)
If (txtTagFilter.Text.Trim() <> "") Then
Dim objTagController As New TagController
Dim objTag As TagInfo = objTagController.Get(moduleID, txtTagFilter.Text.ToLower())
If (objTag IsNot Nothing) Then
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_TAG_FILTER, objTag.TagID)
Else
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_TAG_FILTER, Null.NullInteger.ToString())
End If
Else
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_TAG_FILTER, Null.NullInteger.ToString())
End If
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_REPEAT_DIRECTION, drpRepeatDirection.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_REPEAT_COLUMNS, txtRepeatColumns.Text)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_WIDTH, txtWidth.Text)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_HEIGHT, txtHeight.Text)
If (txtSquare.Text <> "" AndAlso CInt(txtSquare.Text) > 0) Then
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_SQUARE, txtSquare.Text)
End If
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_TEMPLATE, txtPhotoTemplate.Text)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_TEMPLATE_ALBUM, txtAlbumTemplate.Text)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_TEMPLATE_HEADER, txtTemplateHeader.Text)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_TEMPLATE_FOOTER, txtTemplateFooter.Text)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_COMPRESSION, drpCompressionType.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_THUMBNAIL, rdoThumbnailType.SelectedValue)
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_LAUNCH_SLIDESHOW, chkLaunchSlideshow.Checked.ToString())
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_ALBUM_SLIDESHOW, chkAlbumSlideshow.Checked.ToString())
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_INCLUDE_JQUERY, chkIncludeJQuery.Checked.ToString())
objModuleController.UpdateTabModuleSetting(Me.TabModuleId, Constants.SETTING_RANDOM_TEMPLATE_MODE, rdoTemplateType.SelectedValue)
End Sub
Private Sub SetTemplateVisibility()
trPhotoTemplate.Visible = (rdoDisplay.SelectedValue = DisplayType.Photo.ToString())
trAlbumTemplate.Visible = (rdoDisplay.SelectedValue = DisplayType.Album.ToString())
End Sub
Private Sub SetVisibility()
Dim objThumbnail As ThumbnailType = CType(System.Enum.Parse(GetType(ThumbnailType), rdoThumbnailType.SelectedValue), ThumbnailType)
trWidth.Visible = (objThumbnail = ThumbnailType.Proportion)
trHeight.Visible = (objThumbnail = ThumbnailType.Proportion)
trSquare.Visible = (objThumbnail = ThumbnailType.Square)
End Sub
#End Region
#Region " Event Handlers "
Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender
Try
SetVisibility()
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Private Sub drpModuleID_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles drpModuleID.SelectedIndexChanged
Try
BindAlbums()
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Protected Sub rdoDisplay_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rdoDisplay.SelectedIndexChanged
Try
SetTemplateVisibility()
BindTokens()
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
#End Region
#Region " Base Method Implementations "
Public Overrides Sub LoadSettings()
Try
If (IsPostBack = False) Then
BindModes()
BindPublicMode()
BindDisplay()
BindRepeatDirection()
BindModules()
BindBorderStyles()
BindCompressionType()
BindTemplateType()
BindSettings()
BindTokens()
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Public Overrides Sub UpdateSettings()
Try
If (Page.IsValid) Then
SaveSettings()
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
Protected Sub rdoPublicMode_SelectedIndexChanged(sender As Object, e As EventArgs) Handles rdoPublicMode.SelectedIndexChanged
Try
BindAlbums()
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
#End Region
End Class
End Namespace