Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit d3ac8ea

Browse files
committed
new UI
1 parent c0de390 commit d3ac8ea

File tree

9 files changed

+571
-414
lines changed

9 files changed

+571
-414
lines changed

V2RayW/ConfigForm.Designer.cs

Lines changed: 44 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

V2RayW/ConfigForm.cs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ private void loadProfiles()
135135
textBoxUserId.Text = "";
136136
textBoxAlterID.Text = "";
137137
textBoxRemark.Text = "";
138-
checkBoxAllowP.Checked = false;
139138
comboBoxNetwork.SelectedIndex = 0;
140139
comboBoxSecurity.SelectedIndex = 0;
141140
}
@@ -150,7 +149,6 @@ private void listBoxServers_SelectedIndexChanged(object sender, EventArgs e)
150149
textBoxUserId.Text = sp.userId;
151150
textBoxAlterID.Text = sp.alterId.ToString();
152151
textBoxRemark.Text = sp.remark;
153-
checkBoxAllowP.Checked = sp.allowPassive;
154152
comboBoxNetwork.SelectedIndex = sp.network;
155153
comboBoxSecurity.SelectedIndex = sp.security;
156154
}
@@ -210,14 +208,7 @@ private void textBoxRemark_TextChanged(object sender, EventArgs e)
210208
loadProfiles();
211209
}
212210
}
213-
214-
private void checkBoxAllowP_CheckedChanged(object sender, EventArgs e)
215-
{
216-
if (selectedServerIndex >= 0)
217-
{
218-
profiles[selectedServerIndex].allowPassive = checkBoxAllowP.Checked;
219-
}
220-
}
211+
221212

222213
private void comboBoxNetwork_SelectedIndexChanged(object sender, EventArgs e)
223214
{
@@ -239,5 +230,11 @@ private void comboBoxSecurity_SelectedIndexChanged(object sender, EventArgs e)
239230
profiles[selectedServerIndex].security = comboBoxSecurity.SelectedIndex;
240231
}
241232
}
233+
234+
private void buttonImport_Click(object sender, EventArgs e)
235+
{
236+
var importWindow = new FormImport();
237+
importWindow.ShowDialog(this);
238+
}
242239
}
243240
}

0 commit comments

Comments
 (0)