-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.Designer.cs
183 lines (178 loc) · 7.57 KB
/
MainPage.Designer.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
namespace SingSelector
{
partial class MainPage
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainPage));
Button_Switch = new Button();
ComboBox_Selector = new ComboBox();
RichTextBox_Log = new RichTextBox();
TrayIcon = new NotifyIcon(components);
TrayMenu = new ContextMenuStrip(components);
TrayMenu_MainPage = new ToolStripMenuItem();
TrayMenu_Switch = new ToolStripMenuItem();
TrayMenu_ChangeProfile = new ToolStripMenuItem();
TrayMenu_Exit = new ToolStripMenuItem();
Button_EditProfile = new Button();
Button_Refresh = new Button();
TrayMenu.SuspendLayout();
SuspendLayout();
//
// Button_Switch
//
Button_Switch.Font = new Font("Microsoft YaHei UI", 8F);
Button_Switch.Location = new Point(681, 12);
Button_Switch.Name = "Button_Switch";
Button_Switch.Size = new Size(91, 25);
Button_Switch.TabIndex = 0;
Button_Switch.Text = "启动";
Button_Switch.UseVisualStyleBackColor = true;
Button_Switch.Click += Button_Switch_Click;
//
// ComboBox_Selector
//
ComboBox_Selector.DropDownStyle = ComboBoxStyle.DropDownList;
ComboBox_Selector.FormattingEnabled = true;
ComboBox_Selector.Location = new Point(12, 12);
ComboBox_Selector.Name = "ComboBox_Selector";
ComboBox_Selector.Size = new Size(535, 25);
ComboBox_Selector.TabIndex = 1;
ComboBox_Selector.SelectedIndexChanged += Update_ComboBox_Selection;
//
// RichTextBox_Log
//
RichTextBox_Log.BackColor = SystemColors.ButtonHighlight;
RichTextBox_Log.BorderStyle = BorderStyle.None;
RichTextBox_Log.Font = new Font("Microsoft YaHei UI", 8F);
RichTextBox_Log.Location = new Point(12, 43);
RichTextBox_Log.Name = "RichTextBox_Log";
RichTextBox_Log.ReadOnly = true;
RichTextBox_Log.ScrollBars = RichTextBoxScrollBars.Vertical;
RichTextBox_Log.Size = new Size(760, 706);
RichTextBox_Log.TabIndex = 2;
RichTextBox_Log.Text = "";
RichTextBox_Log.TextChanged += RichTextBox_Log_TextChanged;
//
// TrayIcon
//
TrayIcon.ContextMenuStrip = TrayMenu;
TrayIcon.Icon = (Icon)resources.GetObject("TrayIcon.Icon");
TrayIcon.Text = "SingSelector";
TrayIcon.Visible = true;
TrayIcon.MouseDoubleClick += TrayIcon_MouseDoubleClick;
//
// TrayMenu
//
TrayMenu.Items.AddRange(new ToolStripItem[] { TrayMenu_MainPage, TrayMenu_Switch, TrayMenu_ChangeProfile, TrayMenu_Exit });
TrayMenu.Name = "TrayMenu";
TrayMenu.ShowImageMargin = false;
TrayMenu.Size = new Size(156, 114);
//
// TrayMenu_MainPage
//
TrayMenu_MainPage.Name = "TrayMenu_MainPage";
TrayMenu_MainPage.Size = new Size(155, 22);
TrayMenu_MainPage.Text = "SingSelector";
TrayMenu_MainPage.Click += TrayMenu_MainPage_Click;
//
// TrayMenu_Switch
//
TrayMenu_Switch.Name = "TrayMenu_Switch";
TrayMenu_Switch.Size = new Size(155, 22);
TrayMenu_Switch.Text = "启动";
TrayMenu_Switch.Click += TrayMenu_Switch_Click;
//
// TrayMenu_ChangeProfile
//
TrayMenu_ChangeProfile.Name = "TrayMenu_ChangeProfile";
TrayMenu_ChangeProfile.Size = new Size(155, 22);
TrayMenu_ChangeProfile.Text = "切换配置文件";
TrayMenu_ChangeProfile.DropDownItemClicked += Update_TrayMenu_Selection;
//
// TrayMenu_Exit
//
TrayMenu_Exit.Name = "TrayMenu_Exit";
TrayMenu_Exit.Size = new Size(155, 22);
TrayMenu_Exit.Text = "退出";
TrayMenu_Exit.Click += TrayMenu_Exit_Click;
//
// Button_EditProfile
//
Button_EditProfile.Font = new Font("Microsoft YaHei UI", 8F);
Button_EditProfile.Location = new Point(584, 12);
Button_EditProfile.Name = "Button_EditProfile";
Button_EditProfile.Size = new Size(91, 25);
Button_EditProfile.TabIndex = 3;
Button_EditProfile.Text = "编辑";
Button_EditProfile.UseVisualStyleBackColor = true;
Button_EditProfile.Click += Button_EditProfile_Click;
//
// Button_Refresh
//
Button_Refresh.BackgroundImage = Properties.Resources.Icon_UpdateProfiles;
Button_Refresh.BackgroundImageLayout = ImageLayout.Zoom;
Button_Refresh.Location = new Point(553, 12);
Button_Refresh.Name = "Button_Refresh";
Button_Refresh.Size = new Size(25, 25);
Button_Refresh.TabIndex = 4;
Button_Refresh.UseVisualStyleBackColor = true;
Button_Refresh.Click += Button_Refresh_Click;
//
// MainPage
//
AutoScaleDimensions = new SizeF(96F, 96F);
AutoScaleMode = AutoScaleMode.Dpi;
ClientSize = new Size(784, 761);
Controls.Add(Button_Refresh);
Controls.Add(Button_EditProfile);
Controls.Add(RichTextBox_Log);
Controls.Add(ComboBox_Selector);
Controls.Add(Button_Switch);
FormBorderStyle = FormBorderStyle.FixedSingle;
Icon = (Icon)resources.GetObject("$this.Icon");
MaximizeBox = false;
Name = "MainPage";
StartPosition = FormStartPosition.CenterScreen;
Text = "SingSelector";
FormClosing += MainPage_Closing;
Load += MainPage_Load;
TrayMenu.ResumeLayout(false);
ResumeLayout(false);
}
#endregion
private Button Button_Switch;
private ComboBox ComboBox_Selector;
private RichTextBox RichTextBox_Log;
private NotifyIcon TrayIcon;
private ContextMenuStrip TrayMenu;
private ToolStripMenuItem TrayMenu_MainPage;
private ToolStripMenuItem TrayMenu_Exit;
private Button Button_EditProfile;
private Button Button_Refresh;
private ToolStripMenuItem TrayMenu_Switch;
private ToolStripMenuItem TrayMenu_ChangeProfile;
}
}