-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdvancedPanel.cs
200 lines (186 loc) · 10 KB
/
AdvancedPanel.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
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
// Type: Intel.Mobile.WiMAXCU.UI.Dashboard.AdvancedPanel
// Assembly: WiMAXCU, Version=6.2.4357.25644, Culture=neutral, PublicKeyToken=null
// MVID: 3C622363-C72C-43B7-9311-DD8942A58F18
// Assembly location: E:\Extracted\program files\Intel\WiMAX\Bin\WiMAXCU.exe
using Intel.Mobile.WiMAXCU.UI.CustomControls;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace Intel.Mobile.WiMAXCU.UI.Dashboard
{
public class AdvancedPanel : UserControl
{
private Container components;
private AdvancedDialog _parentDialog;
private CustomHelpButtonLabelPair AdvancedPanel_HelpButtonLabelPair;
private CustomButtonPushHorizBox AdvancedPanel_CloseBtnBox;
private CustomButtonPush AdvancedPanel_CloseBtn;
private CustomTabControl AdvancedPanel_TabControl;
private TabPage AdvancedPanel_SettingsTabPage;
private Label AdvancedPanel_HeaderLbl;
private AdapterTabPanel AdvandedPanel_AdapterTabPanel;
private SettingsTabPanel AdvandedPanel_SettingsTabPanel;
private TabPage AdvancedPanel_AdapterTabPage;
private bool _blocked;
public bool Blocked
{
get
{
return this._blocked;
}
set
{
this._blocked = value;
}
}
public AdvancedPanel(AdvancedDialog parentDialog)
{
this._parentDialog = parentDialog;
this.InitializeComponent();
this.CustomInitializeComponents();
}
protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}
private void InitializeComponent()
{
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (AdvancedPanel));
this.AdvancedPanel_HelpButtonLabelPair = new CustomHelpButtonLabelPair();
this.AdvancedPanel_CloseBtnBox = new CustomButtonPushHorizBox();
this.AdvancedPanel_CloseBtn = new CustomButtonPush();
this.AdvancedPanel_TabControl = new CustomTabControl();
this.AdvancedPanel_AdapterTabPage = new TabPage();
this.AdvandedPanel_AdapterTabPanel = new AdapterTabPanel();
this.AdvancedPanel_SettingsTabPage = new TabPage();
this.AdvandedPanel_SettingsTabPanel = new SettingsTabPanel();
this.AdvancedPanel_HeaderLbl = new Label();
this.AdvancedPanel_CloseBtnBox.SuspendLayout();
this.AdvancedPanel_AdapterTabPage.SuspendLayout();
this.AdvancedPanel_SettingsTabPage.SuspendLayout();
this.SuspendLayout();
this.AdvancedPanel_HelpButtonLabelPair.BackColor = Color.Transparent;
componentResourceManager.ApplyResources((object) this.AdvancedPanel_HelpButtonLabelPair, "AdvancedPanel_HelpButtonLabelPair");
this.AdvancedPanel_HelpButtonLabelPair.Name = "AdvancedPanel_HelpButtonLabelPair";
this.AdvancedPanel_CloseBtnBox.Controls.Add((Control) this.AdvancedPanel_CloseBtn);
componentResourceManager.ApplyResources((object) this.AdvancedPanel_CloseBtnBox, "AdvancedPanel_CloseBtnBox");
this.AdvancedPanel_CloseBtnBox.HorizontalJustification = HorizontalJustificationEnum.Right;
this.AdvancedPanel_CloseBtnBox.Name = "AdvancedPanel_CloseBtnBox";
this.AdvancedPanel_CloseBtn.BackColor = Color.White;
this.AdvancedPanel_CloseBtn.BtnColor = PushButtonColorEnum.BlueGrey;
this.AdvancedPanel_CloseBtn.BtnDoubleEndCaps = false;
this.AdvancedPanel_CloseBtn.BtnEnabled = true;
componentResourceManager.ApplyResources((object) this.AdvancedPanel_CloseBtn, "AdvancedPanel_CloseBtn");
this.AdvancedPanel_CloseBtn.Name = "AdvancedPanel_CloseBtn";
componentResourceManager.ApplyResources((object) this.AdvancedPanel_TabControl, "AdvancedPanel_TabControl");
this.AdvancedPanel_TabControl.Name = "AdvancedPanel_TabControl";
this.AdvancedPanel_TabControl.SelectedIndex = 0;
this.AdvancedPanel_AdapterTabPage.BackColor = Color.White;
this.AdvancedPanel_AdapterTabPage.Controls.Add((Control) this.AdvandedPanel_AdapterTabPanel);
componentResourceManager.ApplyResources((object) this.AdvancedPanel_AdapterTabPage, "AdvancedPanel_AdapterTabPage");
this.AdvancedPanel_AdapterTabPage.Name = "AdvancedPanel_AdapterTabPage";
this.AdvancedPanel_AdapterTabPage.UseVisualStyleBackColor = true;
componentResourceManager.ApplyResources((object) this.AdvandedPanel_AdapterTabPanel, "AdvandedPanel_AdapterTabPanel");
this.AdvandedPanel_AdapterTabPanel.BackColor = Color.White;
this.AdvandedPanel_AdapterTabPanel.Name = "AdvandedPanel_AdapterTabPanel";
this.AdvandedPanel_AdapterTabPanel.ParentPanel = (AdvancedPanel) null;
this.AdvancedPanel_SettingsTabPage.BackColor = Color.White;
this.AdvancedPanel_SettingsTabPage.Controls.Add((Control) this.AdvandedPanel_SettingsTabPanel);
componentResourceManager.ApplyResources((object) this.AdvancedPanel_SettingsTabPage, "AdvancedPanel_SettingsTabPage");
this.AdvancedPanel_SettingsTabPage.Name = "AdvancedPanel_SettingsTabPage";
this.AdvancedPanel_SettingsTabPage.UseVisualStyleBackColor = true;
componentResourceManager.ApplyResources((object) this.AdvandedPanel_SettingsTabPanel, "AdvandedPanel_SettingsTabPanel");
this.AdvandedPanel_SettingsTabPanel.BackColor = Color.White;
this.AdvandedPanel_SettingsTabPanel.Name = "AdvandedPanel_SettingsTabPanel";
this.AdvandedPanel_SettingsTabPanel.ParentPanel = (AdvancedPanel) null;
this.AdvancedPanel_HeaderLbl.BackColor = Color.Transparent;
componentResourceManager.ApplyResources((object) this.AdvancedPanel_HeaderLbl, "AdvancedPanel_HeaderLbl");
this.AdvancedPanel_HeaderLbl.Name = "AdvancedPanel_HeaderLbl";
this.AutoScaleMode = AutoScaleMode.None;
this.BackColor = Color.White;
this.Controls.Add((Control) this.AdvancedPanel_HeaderLbl);
this.Controls.Add((Control) this.AdvancedPanel_TabControl);
this.Controls.Add((Control) this.AdvancedPanel_HelpButtonLabelPair);
this.Controls.Add((Control) this.AdvancedPanel_CloseBtnBox);
componentResourceManager.ApplyResources((object) this, "$this");
this.Name = "AdvancedPanel";
this.AdvancedPanel_CloseBtnBox.ResumeLayout(false);
this.AdvancedPanel_AdapterTabPage.ResumeLayout(false);
this.AdvancedPanel_SettingsTabPage.ResumeLayout(false);
this.ResumeLayout(false);
}
public void InitPanel()
{
this.AdvandedPanel_AdapterTabPanel.InitPanel();
this.AdvandedPanel_SettingsTabPanel.InitPanel();
this.AdvancedPanel_TabControl.SelectedTab = this.AdvancedPanel_AdapterTabPage;
this.ActiveControl = (Control) this.AdvancedPanel_TabControl;
this.AdvancedPanel_TabControl.Focus();
}
public void CleanUp()
{
this.AdvandedPanel_AdapterTabPanel.CleanUp();
this.AdvandedPanel_SettingsTabPanel.CleanUp();
}
public void LaunchHelp()
{
if (this.AdvancedPanel_TabControl.SelectedTab == this.AdvancedPanel_AdapterTabPage)
OnlineHelp.LaunchHelp("/advanced.htm#adapter");
else if (this.AdvancedPanel_TabControl.SelectedTab == this.AdvancedPanel_SettingsTabPage)
OnlineHelp.LaunchHelp("/advanced.htm#settings");
else
OnlineHelp.LaunchHelp((string) null);
}
public void Block()
{
this._blocked = true;
this.AdvandedPanel_AdapterTabPanel.UpdateButtonState();
this.AdvandedPanel_SettingsTabPanel.UpdateUI(false);
this.AdvancedPanel_CloseBtn.BtnEnabled = false;
}
public void Unblock()
{
this._blocked = false;
this.AdvandedPanel_AdapterTabPanel.UpdateButtonState();
this.AdvandedPanel_SettingsTabPanel.UpdateUI(false);
this.AdvancedPanel_CloseBtn.BtnEnabled = true;
}
private void OnCloseBtnPressed(object sender, EventArgs e)
{
AdvancedDialog.Singleton.Close();
}
private void OnHelpButtonPressed(object sender, MouseEventArgs e)
{
if (MouseHelper.IgnoreMouseClick(e, (Control) sender, ((Control) sender).Enabled))
return;
this.LaunchHelp();
}
private void CustomInitializeComponents()
{
this.AccessibleName = "AdvancedPanel";
this.AdvancedPanel_AdapterTabPage.AccessibleName = "AdvancedPanel_AdapterTabPage";
this.AdvancedPanel_CloseBtn.AccessibleName = "AdvancedPanel_CloseBtn";
this.AdvancedPanel_CloseBtnBox.AccessibleName = "AdvancedPanel_CloseBtnBox";
this.AdvancedPanel_HeaderLbl.AccessibleName = "AdvancedPanel_HeaderLbl";
this.AdvancedPanel_HelpButtonLabelPair.AccessibleName = "AdvancedPanel_HelpButtonLabelPair";
this.AdvancedPanel_TabControl.AccessibleName = "AdvancedPanel_TabControl";
this.AdvancedPanel_SettingsTabPage.AccessibleName = "AdvancedPanel_SettingsTabPage";
this.AdvandedPanel_AdapterTabPanel.AccessibleName = "AdvandedPanel_AdapterTabPanel";
this.AdvandedPanel_SettingsTabPanel.AccessibleName = "AdvandedPanel_SettingsTabPanel";
this.AdvancedPanel_CloseBtn.BtnText = AdvancedDlgStringHelper.GetString("AdvancedPanel_CloseBtn");
this.AdvancedPanel_AdapterTabPage.Text = AdvancedDlgStringHelper.GetString("AdvancedPanel_AdapterTabPage");
this.AdvancedPanel_SettingsTabPage.Text = AdvancedDlgStringHelper.GetString("AdvancedPanel_SettingsTabPage");
this.AdvancedPanel_HeaderLbl.Text = AdvancedDlgStringHelper.GetString("AdvancedPanel_HeaderLbl");
this.AdvancedPanel_TabControl.AddTabPage(this.AdvancedPanel_AdapterTabPage);
this.AdvancedPanel_TabControl.AddTabPage(this.AdvancedPanel_SettingsTabPage);
this.AdvancedPanel_CloseBtn.Pressed += new CustomButtonPush.PressedDelegate(this.OnCloseBtnPressed);
this.AdvancedPanel_HelpButtonLabelPair.HelpBtnPressed += new CustomHelpButtonLabelPair.HelpBtnPressedDelegate(this.OnHelpButtonPressed);
SizeHelper.ResizeCustomControls(this.Controls);
this.AdvandedPanel_AdapterTabPanel.ParentPanel = this;
this.AdvandedPanel_SettingsTabPanel.ParentPanel = this;
}
}
}