forked from DNNCommunity/DNN.Events
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEventModerate.ascx.vb
472 lines (426 loc) · 27.1 KB
/
EventModerate.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
'
' DotNetNuke® - http://www.dnnsoftware.com
' Copyright (c) 2002-2013
' by DNNCorp
'
' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
' documentation files (the "Software"), to deal in the Software without restriction, including without limitation
' the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
' to permit persons to whom the Software is furnished to do so, subject to the following conditions:
'
' The above copyright notice and this permission notice shall be included in all copies or substantial portions
' of the Software.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
' THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
' CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
' DEALINGS IN THE SOFTWARE.
'
Imports System.Collections
Namespace DotNetNuke.Modules.Events
<DNNtc.ModuleControlProperties("Moderate", "Moderate Events and Enrollment", DNNtc.ControlType.View, "https://dnnevents.codeplex.com/documentation", True, True)> _
Partial Class EventModerate
Inherits EventBase
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
#Region "Private Area"
Private ReadOnly _objCtlEvent As New EventController
Private ReadOnly _objCtlEventRecurMaster As New EventRecurMasterController
Private ReadOnly _objCtlEventSignups As New EventSignupsController
Private _eventModeration, _eventRecurModeration As New ArrayList
#End Region
#Region "Event Handlers"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As EventArgs) Handles MyBase.Load
Try
' Verify that the current user has moderator access to this module
If Security.PortalSecurity.IsInRole(PortalSettings.AdministratorRoleName.ToString) Or _
IsModerator() Then
Else
Response.Redirect(GetSocialNavigateUrl(), True)
End If
' Set the selected theme
SetTheme(pnlEventsModuleModerate)
If Page.IsPostBack = False Then
txtEmailFrom.Text = UserInfo.Email.ToString
LocalizeAll()
'Are You Sure You Wish To Update/Delete Item(s) (and send Email) ?'
cmdUpdateSelected.Attributes.Add("onclick", "javascript:return confirm('" + Localization.GetString("ConfirmUpdateDeleteModerate", LocalResourceFile) + "');")
BindData()
End If
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
#End Region
#Region "Helper Methods"
Private Sub BindData()
Dim objEventInfoHelper As New EventInfoHelper(ModuleId, TabId, PortalId, Settings)
Dim objEventTimeZoneUtilities As New EventTimeZoneUtilities
_eventModeration = New ArrayList
Select Case rbModerate.SelectedValue
Case "Events"
_eventModeration = objEventInfoHelper.ConvertEventListToDisplayTimeZone(_objCtlEvent.EventsModerateEvents(ModuleId, GetUrlGroupId), GetDisplayTimeZoneId())
_eventRecurModeration = New ArrayList
_eventRecurModeration = _objCtlEventRecurMaster.EventsRecurMasterModerate(ModuleId, GetUrlGroupId)
For Each objRecurMaster As EventRecurMasterInfo In _eventRecurModeration
objRecurMaster.Dtstart = objEventTimeZoneUtilities.ConvertToDisplayTimeZone(objRecurMaster.Dtstart, objRecurMaster.EventTimeZoneId, PortalId, GetDisplayTimeZoneId()).EventDate
Next
'Get data for selected date and fill grid
grdEvents.DataSource = _eventModeration
grdEvents.DataBind()
If _eventRecurModeration.Count > 0 Then
grdRecurEvents.DataSource = _eventRecurModeration
grdRecurEvents.DataBind()
grdRecurEvents.Visible = True
End If
grdEvents.Visible = True
grdEnrollment.Visible = False
Case "Enrollment"
_eventModeration = _objCtlEventSignups.EventsModerateSignups(ModuleId, GetUrlGroupId)
Dim objSignup As EventSignupsInfo
For Each objSignup In _eventModeration
If objSignup.UserID <> -1 Then
objSignup.UserName = objEventInfoHelper.UserDisplayNameProfile(objSignup.UserID, objSignup.UserName, LocalResourceFile).DisplayNameURL
Else
objSignup.UserName = objSignup.AnonName
objSignup.Email = objSignup.AnonEmail
End If
If objSignup.Email = "" Then
objSignup.EmailVisible = False
Else
objSignup.EmailVisible = True
End If
objSignup.EventTimeBegin = objEventTimeZoneUtilities.ConvertToDisplayTimeZone(objSignup.EventTimeBegin, objSignup.EventTimeZoneId, PortalId, GetDisplayTimeZoneId()).EventDate
Next
'Get data for selected date and fill grid
grdEnrollment.DataSource = _eventModeration
grdEnrollment.DataBind()
'Add Remove Popup to grid
Dim i As Integer
If grdEnrollment.Items.Count > 0 Then
For i = 0 To grdEnrollment.Items.Count - 1
'Are You Sure You Wish To Email the User?'
CType(grdEnrollment.Items(i).FindControl("btnUserEmail"), ImageButton).Attributes.Add("onclick", "javascript:return confirm('" + Localization.GetString("ConfirmModerateSendMailToUser", LocalResourceFile) + "');")
CType(grdEnrollment.Items(i).FindControl("btnUserEmail"), ImageButton).AlternateText = Localization.GetString("EmailUser", LocalResourceFile)
CType(grdEnrollment.Items(i).FindControl("btnUserEmail"), ImageButton).ToolTip = Localization.GetString("EmailUser", LocalResourceFile)
Next
grdEvents.Visible = False
grdRecurEvents.Visible = False
grdEnrollment.Visible = True
End If
End Select
If _eventModeration.Count < 1 Then
'"No New Events/Enrollments to Moderate..."
lblMessage.Text = Localization.GetString("MsgModerateNothingToModerate", LocalResourceFile)
ShowButtonsGrid(False)
Else
'Deny option will delete Event/Enrollment Entries from the Database!"
lblMessage.Text = Localization.GetString("MsgModerateNoteDenyOption", LocalResourceFile)
ShowButtonsGrid(True)
End If
End Sub
Private Sub LocalizeAll()
txtEmailSubject.Text = Settings.Templates.txtEmailSubject
txtEmailMessage.Text = Settings.Templates.txtEmailMessage
grdEvents.Columns(0).HeaderText = Localization.GetString("SingleAction", LocalResourceFile)
grdEvents.Columns(1).HeaderText = Localization.GetString("Date", LocalResourceFile)
grdEvents.Columns(2).HeaderText = Localization.GetString("Time", LocalResourceFile)
grdEvents.Columns(3).HeaderText = Localization.GetString("Event", LocalResourceFile)
grdRecurEvents.Columns(0).HeaderText = Localization.GetString("RecurAction", LocalResourceFile)
grdRecurEvents.Columns(1).HeaderText = Localization.GetString("Date", LocalResourceFile)
grdRecurEvents.Columns(2).HeaderText = Localization.GetString("Time", LocalResourceFile)
grdRecurEvents.Columns(3).HeaderText = Localization.GetString("Event", LocalResourceFile)
grdEnrollment.Columns(0).HeaderText = Localization.GetString("Action", LocalResourceFile)
grdEnrollment.Columns(1).HeaderText = Localization.GetString("Date", LocalResourceFile)
grdEnrollment.Columns(2).HeaderText = Localization.GetString("Time", LocalResourceFile)
grdEnrollment.Columns(3).HeaderText = Localization.GetString("Event", LocalResourceFile)
grdEnrollment.Columns(4).HeaderText = ""
grdEnrollment.Columns(5).HeaderText = Localization.GetString("User", LocalResourceFile)
grdEnrollment.Columns(6).HeaderText = Localization.GetString("NoEnrolees", LocalResourceFile)
End Sub
Private Sub ShowButtonsGrid(ByVal blShow As Boolean)
pnlEmail.Visible = blShow
pnlGrid.Visible = blShow
cmdUpdateSelected.Visible = blShow
cmdSelectApproveAll.Visible = blShow
cmdSelectDenyAll.Visible = blShow
cmdUnmarkAll.Visible = blShow
End Sub
#End Region
#Region "Links and Buttons"
Private Sub cmdUpdateSelected_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles cmdUpdateSelected.Click
Dim item As DataGridItem
Dim objEventEmail As New EventEmails(PortalId, ModuleId, LocalResourceFile, CType(Page, PageBase).PageCulture.Name)
Try
Select Case rbModerate.SelectedValue
Case "Events"
Dim objEventEmailInfo As New EventEmailInfo
objEventEmailInfo.TxtEmailSubject = txtEmailSubject.Text
objEventEmailInfo.TxtEmailBody = txtEmailMessage.Text
objEventEmailInfo.TxtEmailFrom() = txtEmailFrom.Text
Dim objCal As New EventInfo
Dim objEventRecurMaster As EventRecurMasterInfo
For Each item In grdEvents.Items
Select Case CType(item.FindControl("rbEventAction"), RadioButtonList).SelectedValue
Case "Approve"
objCal = _objCtlEvent.EventsGet(CType(grdEvents.DataKeys(item.ItemIndex), Integer), ModuleId)
objCal.Approved = True
Dim newEventEmailSent As Boolean = objCal.NewEventEmailSent
objCal.NewEventEmailSent = True
_objCtlEvent.EventsSave(objCal, True, TabId, False)
' Only send event emails when event approved for first time
If Not newEventEmailSent Then
objCal.RRULE = ""
SendNewEventEmails(objCal)
CreateNewEventJournal(objCal)
End If
' Email Requesting/Moderated User
If chkEmail.Checked Then
objCal.RRULE = ""
objEventEmailInfo.UserIDs.Clear()
objEventEmailInfo.UserIDs.Add(objCal.OwnerID)
objEventEmail.SendEmails(objEventEmailInfo, objCal)
End If
Case "Deny"
objCal = _objCtlEvent.EventsGet(CType(grdEvents.DataKeys(item.ItemIndex), Integer), ModuleId)
'Don't Allow Delete on Enrolled Event - Only Cancel
objEventRecurMaster = _objCtlEventRecurMaster.EventsRecurMasterGet(objCal.RecurMasterID, objCal.ModuleID)
If objEventRecurMaster.RRULE <> "" Then
objCal.Cancelled = True
objCal.LastUpdatedID = UserId
objCal = _objCtlEvent.EventsSave(objCal, False, TabId, True)
Else
_objCtlEventRecurMaster.EventsRecurMasterDelete(objCal.RecurMasterID, objCal.ModuleID)
End If
' Email Requesting/Moderated User
If chkEmail.Checked Then
objCal.RRULE = ""
objEventEmailInfo.UserIDs.Clear()
objEventEmailInfo.UserIDs.Add(objCal.OwnerID)
objEventEmail.SendEmails(objEventEmailInfo, objCal)
End If
End Select
Next
For Each item In grdRecurEvents.Items
Select Case CType(item.FindControl("rbEventRecurAction"), RadioButtonList).SelectedValue
Case "Approve"
objEventRecurMaster = _objCtlEventRecurMaster.EventsRecurMasterGet(CType(grdRecurEvents.DataKeys(item.ItemIndex), Integer), ModuleId)
objEventRecurMaster.Approved = True
_objCtlEventRecurMaster.EventsRecurMasterSave(objEventRecurMaster, TabId, False)
Dim lstEvents As ArrayList
lstEvents = _objCtlEvent.EventsGetRecurrences(objEventRecurMaster.RecurMasterID, objEventRecurMaster.ModuleID)
Dim blEmailSent As Boolean = False
For Each objCal In lstEvents
If Not objCal.Cancelled Then
objCal.Approved = True
Dim newEventEmailSent As Boolean = objCal.NewEventEmailSent
objCal.NewEventEmailSent = True
_objCtlEvent.EventsSave(objCal, True, TabId, False)
' Only send event emails when event approved for first time
If Not newEventEmailSent And Not blEmailSent Then
objCal.RRULE = objEventRecurMaster.RRULE
SendNewEventEmails(objCal)
CreateNewEventJournal(objCal)
blEmailSent = True
End If
End If
Next
' Email Requesting/Moderated User
If chkEmail.Checked Then
objCal.RRULE = objEventRecurMaster.RRULE
objEventEmailInfo.UserIDs.Clear()
objEventEmailInfo.UserIDs.Add(objEventRecurMaster.CreatedByID)
objEventEmail.SendEmails(objEventEmailInfo, objCal)
End If
Case "Deny"
objEventRecurMaster = _objCtlEventRecurMaster.EventsRecurMasterGet(CType(grdRecurEvents.DataKeys(item.ItemIndex), Integer), ModuleId)
'Don't Allow Delete on Enrolled Event - Only Cancel
_objCtlEventRecurMaster.EventsRecurMasterDelete(CType(grdRecurEvents.DataKeys(item.ItemIndex), Integer), ModuleId)
' Email Requesting/Moderated User
If chkEmail.Checked Then
objCal.RRULE = objEventRecurMaster.RRULE
objEventEmailInfo.UserIDs.Clear()
objEventEmailInfo.UserIDs.Add(objEventRecurMaster.CreatedByID)
objEventEmail.SendEmails(objEventEmailInfo, objCal)
End If
End Select
Next
Case "Enrollment"
' Not moderated
Dim objEnroll As EventSignupsInfo
For Each item In grdEnrollment.Items
If CType(item.FindControl("rbEnrollAction"), RadioButtonList).SelectedValue <> "" Then
objEnroll = _objCtlEventSignups.EventsSignupsGet(CType(grdEnrollment.DataKeys(item.ItemIndex), Integer), ModuleId, False)
Dim objCtlEvent As New EventController
Dim objEvent As EventInfo = objCtlEvent.EventsGet(objEnroll.EventID, objEnroll.ModuleID)
Dim objEventEmailInfo As New EventEmailInfo
objEventEmailInfo.TxtEmailSubject = txtEmailSubject.Text
objEventEmailInfo.TxtEmailFrom() = txtEmailFrom.Text
If chkEmail.Checked Then
If objEnroll.UserID > -1 Then
objEventEmailInfo.UserIDs.Add(objEnroll.UserID)
Else
objEventEmailInfo.UserEmails.Add(objEnroll.AnonEmail)
objEventEmailInfo.UserLocales.Add(objEnroll.AnonCulture)
objEventEmailInfo.UserTimeZoneIds.Add(objEnroll.AnonTimeZoneId)
End If
End If
Select Case CType(item.FindControl("rbEnrollAction"), RadioButtonList).SelectedValue
Case "Approve"
objEnroll.Approved = True
CreateEnrollment(objEnroll, objEvent)
' Email Requesting/Moderated User
If Settings.SendEnrollMessageApproved Then
objEventEmailInfo.UserIDs.Add(objEvent.OwnerID)
End If
objEventEmailInfo.TxtEmailBody = txtEmailMessage.Text & Settings.Templates.txtEnrollMessageApproved
objEventEmail.SendEmails(objEventEmailInfo, objEvent, objEnroll)
Case "Deny"
DeleteEnrollment(CType(grdEnrollment.DataKeys(item.ItemIndex), Integer), objEvent.ModuleID, objEvent.EventID)
' Email Requesting/Moderated User
If Settings.SendEnrollMessageDenied Then
objEventEmailInfo.UserIDs.Add(objEvent.OwnerID)
End If
objEventEmailInfo.TxtEmailBody = txtEmailMessage.Text & Settings.Templates.txtEnrollMessageDenied
objEventEmail.SendEmails(objEventEmailInfo, objEvent, objEnroll)
End Select
End If
Next
End Select
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
BindData()
End Sub
Private Sub cmdSelectApproveAll_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles cmdSelectApproveAll.Click
BindData()
Dim item As DataGridItem
If rbModerate.SelectedValue = "Events" Then
For Each item In grdEvents.Items
CType(item.FindControl("rbEventAction"), RadioButtonList).SelectedValue = "Approve"
Next
For Each item In grdRecurEvents.Items
CType(item.FindControl("rbEventRecurAction"), RadioButtonList).SelectedValue = "Approve"
Next
Else
For Each item In grdEnrollment.Items
CType(item.FindControl("rbEnrollAction"), RadioButtonList).SelectedValue = "Approve"
Next
End If
cmdUpdateSelected_Click(sender, e)
End Sub
Private Sub cmdSelectDenyAll_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles cmdSelectDenyAll.Click
BindData()
Dim item As DataGridItem
If rbModerate.SelectedValue = "Events" Then
For Each item In grdEvents.Items
CType(item.FindControl("rbEventAction"), RadioButtonList).SelectedValue = "Deny"
Next
For Each item In grdRecurEvents.Items
CType(item.FindControl("rbEventRecurAction"), RadioButtonList).SelectedValue = "Deny"
Next
Else
For Each item In grdEnrollment.Items
CType(item.FindControl("rbEnrollAction"), RadioButtonList).SelectedValue = "Deny"
Next
End If
cmdUpdateSelected_Click(sender, e)
End Sub
Private Sub cmdUnmarkAll_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles cmdUnmarkAll.Click
BindData()
Dim item As DataGridItem
If rbModerate.SelectedValue = "Events" Then
For Each item In grdEvents.Items
CType(item.FindControl("rbEventAction"), RadioButtonList).SelectedValue = Nothing
Next
For Each item In grdRecurEvents.Items
CType(item.FindControl("rbEventRecurAction"), RadioButtonList).SelectedValue = Nothing
Next
Else
For Each item In grdEnrollment.Items
CType(item.FindControl("rbEnrollAction"), RadioButtonList).SelectedValue = Nothing
Next
End If
End Sub
#End Region
#Region "Grid and Other Events"
Private Sub rbModerate_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As EventArgs) Handles rbModerate.SelectedIndexChanged
If rbModerate.SelectedValue = "Events" Then
grdEnrollment.Visible = False
grdEvents.Visible = True
grdRecurEvents.Visible = True
Else
grdEnrollment.Visible = True
grdEvents.Visible = False
End If
BindData()
End Sub
Public Sub grdEvents_ItemCommand(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Select Case e.CommandName
Case "Select"
Dim itemID As Integer = CType(grdEvents.DataKeys(e.Item.ItemIndex), Integer)
Dim objEventInfoHelper As New EventInfoHelper(ModuleId, TabId, PortalId, Settings)
Response.Redirect(objEventInfoHelper.AddSkinContainerControls(NavigateURL(TabId, "Edit", "Mid=" & ModuleId.ToString, "ItemID=" & itemID.ToString(), "EditRecur=Single"), "?"))
End Select
End Sub
Public Sub grdRecurEvents_ItemCommand(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Select Case e.CommandName
Case "Select"
Dim itemID As Integer = CType(e.Item.Cells(4).Text, Integer)
Dim objEventInfoHelper As New EventInfoHelper(ModuleId, TabId, PortalId, Settings)
Response.Redirect(objEventInfoHelper.AddSkinContainerControls(NavigateURL(TabId, "Edit", "Mid=" & ModuleId.ToString, "ItemID=" & itemID.ToString(), "EditRecur=All"), "?"))
End Select
End Sub
Public Sub grdEnrollment_ItemCommand(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs)
Dim objEnroll As EventSignupsInfo
objEnroll = _objCtlEventSignups.EventsSignupsGet(CType(grdEnrollment.DataKeys(e.Item.ItemIndex), Integer), ModuleId, False)
Try
Select Case e.CommandName
Case "Select"
Try
Dim itemID As Integer = objEnroll.EventID
Dim objEventInfoHelper As New EventInfoHelper(ModuleId, TabId, PortalId, Settings)
Response.Redirect(objEventInfoHelper.AddSkinContainerControls(EditUrl("ItemID", itemID.ToString(), "Edit"), "?"))
Catch ex As Exception
End Try
Case "User"
Dim objCtlEvent As New EventController
Dim objEvent As EventInfo = objCtlEvent.EventsGet(objEnroll.EventID, objEnroll.ModuleID)
Dim objEventEmailInfo As New EventEmailInfo
Dim objEventEmail As New EventEmails(PortalId, ModuleId, LocalResourceFile, CType(Page, PageBase).PageCulture.Name)
objEventEmailInfo.TxtEmailSubject = txtEmailSubject.Text
objEventEmailInfo.TxtEmailBody = txtEmailMessage.Text
objEventEmailInfo.TxtEmailFrom() = txtEmailFrom.Text
If objEnroll.UserID > -1 Then
objEventEmailInfo.UserIDs.Add(objEnroll.UserID)
Else
objEventEmailInfo.UserEmails.Add(objEnroll.AnonEmail)
objEventEmailInfo.UserLocales.Add(objEnroll.AnonCulture)
objEventEmailInfo.UserTimeZoneIds.Add(objEnroll.AnonTimeZoneId)
End If
objEventEmail.SendEmails(objEventEmailInfo, objEvent, objEnroll)
End Select
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
BindData()
End Sub
Private Sub returnButton_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles returnButton.Click
Try
Response.Redirect(GetSocialNavigateUrl(), True)
Catch exc As Exception 'Module failed to load
ProcessModuleLoadException(Me, exc)
End Try
End Sub
#End Region
End Class
End Namespace