-
Notifications
You must be signed in to change notification settings - Fork 0
/
EditPlans.ascx.cs
53 lines (42 loc) · 1.18 KB
/
EditPlans.ascx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using DotNetNuke.Services.Exceptions;
using System;
using Ventrian.Modules.Subscriptions.Base;
using Ventrian.Modules.Subscriptions.Components.Entities;
namespace Ventrian.Modules.Subscriptions
{
public partial class EditPlans : SubscriptionBase<SubscriptionSettings>
{
#region Private Methods
private void BindPlans()
{
grdPlans.DataSource = Plans;
grdPlans.DataBind();
if( grdPlans.Items.Count == 0 )
{
grdPlans.Visible = false;
phNoPlans.Visible = true;
}
}
#endregion
#region Protected Methods
protected string GetEditUrl(int planID)
{
return EditUrl("pid", planID.ToString(), "EditPlan");
}
#endregion
#region Event Handlers
protected void Page_Load(object sender, EventArgs e)
{
try
{
BindPlans();
lnkAddEntry.NavigateUrl = EditUrl("EditPlan");
}
catch(Exception ex)
{
Exceptions.ProcessModuleLoadException(this, ex);
}
}
#endregion
}
}