-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuOptAdd.Designer.cs
More file actions
94 lines (70 loc) · 1.96 KB
/
Copy pathMenuOptAdd.Designer.cs
File metadata and controls
94 lines (70 loc) · 1.96 KB
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
using SmartAdmin.Controls;
using SmartAdmin.Data;
using SmartAdmin.Utils;
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SmartAdmin
{
public class MenuOptAdd : System.Web.UI.Page
{
protected Button BtnSave;
protected Button BtnCancel;
protected SmartAdmin.Controls.HeaderBox HeaderBox;
protected SmartAdmin.Controls.SubmenuBox SubmenuBox;
protected SmartAdmin.Controls.CopyrightBox CopyrightBox;
protected ValidationSummary ValidationSummary1;
protected RequiredFieldValidator RequiredFieldValidator1;
protected Label LblMenuOptionID;
protected Label TxtMenuOptionID;
protected Label LblMenuOptionShortName;
protected TextBox TxtMenuOptionShortName;
protected Label LblMenuOptionName;
protected TextBox TxtMenuOptionName;
protected RequiredFieldValidator Requiredfieldvalidator2;
protected Image ImgError;
public MenuOptAdd()
{
}
private void BackPage()
{
base.Response.Redirect(Pages.Url(this, Pages.MAS_MENUOPT_LIST_PAGE));
}
private void BtnCancel_Click(object sender, EventArgs e)
{
this.BackPage();
}
private void BtnSave_Click(object sender, EventArgs e)
{
if (this.Page.IsValid)
{
SmartAdmin.Data.Master.MenuOptInsert(this.TxtMenuOptionName.Text, this.TxtMenuOptionShortName.Text);
this.BackPage();
}
}
private void InitializeComponent()
{
this.BtnSave.Click += new EventHandler(this.BtnSave_Click);
this.BtnCancel.Click += new EventHandler(this.BtnCancel_Click);
base.Load += new EventHandler(this.Page_Load);
}
private void LoadMenu()
{
AdminMenu.SetMenu(this, this.HeaderBox, this.SubmenuBox, this.CopyrightBox);
}
private void NextPage()
{
base.Response.Redirect(Pages.Url(this, Pages.MAS_MENUOPT_EDIT_PAGE));
}
protected override void OnInit(EventArgs e)
{
this.InitializeComponent();
base.OnInit(e);
}
private void Page_Load(object sender, EventArgs e)
{
this.LoadMenu();
}
}
}