You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConfigForm.cs 24 kB

10 years ago
12 years ago
10 years ago
12 years ago
10 years ago
12 years ago
10 years ago
10 years ago
12 years ago
12 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
5 years ago
5 years ago
5 years ago
12 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. using Shadowsocks.Controller;
  2. using Shadowsocks.Model;
  3. using Shadowsocks.Properties;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Windows.Forms;
  9. namespace Shadowsocks.View
  10. {
  11. public partial class ConfigForm : Form
  12. {
  13. private ShadowsocksController controller;
  14. // this is a copy of configuration that we are working on
  15. private Configuration _modifiedConfiguration;
  16. private int _lastSelectedIndex = -1;
  17. private bool isChange = false;
  18. private class EncryptionMethod
  19. {
  20. public readonly string name;
  21. public readonly bool deprecated;
  22. // Edit here to add/delete encryption method displayed in UI
  23. private static string[] inuseMethod = new string[]
  24. {
  25. "none",
  26. "plain",
  27. "aes-256-gcm",
  28. "aes-192-gcm",
  29. "aes-128-gcm",
  30. "chacha20-ietf-poly1305",
  31. "xchacha20-ietf-poly1305",
  32. };
  33. public static EncryptionMethod[] AllMethods
  34. {
  35. get
  36. {
  37. if (!init) Init();
  38. return allMethods;
  39. }
  40. }
  41. private static bool init = false;
  42. private static EncryptionMethod[] allMethods;
  43. private static Dictionary<string, EncryptionMethod> methodByName = new Dictionary<string, EncryptionMethod>();
  44. private static void Init()
  45. {
  46. var all = new List<EncryptionMethod>();
  47. all.AddRange(inuseMethod.Select(i => new EncryptionMethod(i, false)));
  48. allMethods = all.ToArray();
  49. foreach (var item in all)
  50. {
  51. methodByName[item.name] = item;
  52. }
  53. init = true;
  54. }
  55. public static EncryptionMethod GetMethod(string name)
  56. {
  57. if (!init) Init();
  58. bool success = methodByName.TryGetValue(name, out EncryptionMethod method);
  59. if (!success)
  60. {
  61. string defaultMethod = Server.DefaultMethod;
  62. MessageBox.Show(I18N.GetString("Encryption method {0} not exist, will replace with {1}", name, defaultMethod), I18N.GetString("Shadowsocks"));
  63. return methodByName[defaultMethod];
  64. }
  65. return method;
  66. }
  67. private EncryptionMethod(string name, bool deprecated)
  68. {
  69. this.name = name;
  70. this.deprecated = deprecated;
  71. }
  72. public override string ToString()
  73. {
  74. return deprecated ? $"{name} ({I18N.GetString("deprecated")})" : name;
  75. }
  76. }
  77. public ConfigForm(ShadowsocksController controller)
  78. {
  79. Font = SystemFonts.MessageBoxFont;
  80. InitializeComponent();
  81. EncryptionSelect.Items.AddRange(EncryptionMethod.AllMethods);
  82. PerformLayout();
  83. UpdateTexts();
  84. SetupValueChangedListeners();
  85. Icon = Icon.FromHandle(Resources.ssw128.GetHicon());
  86. this.controller = controller;
  87. controller.ConfigChanged += Controller_ConfigChanged;
  88. LoadCurrentConfiguration();
  89. }
  90. private void UpdateTexts()
  91. {
  92. I18N.TranslateForm(this);
  93. toolTip1.SetToolTip(PortableModeCheckBox, I18N.GetString("Restart required"));
  94. }
  95. private void SetupValueChangedListeners()
  96. {
  97. IPTextBox.TextChanged += ConfigValueChanged;
  98. ProxyPortTextBox.TextChanged += ConfigValueChanged;
  99. PasswordTextBox.TextChanged += ConfigValueChanged;
  100. EncryptionSelect.SelectedIndexChanged += ConfigValueChanged;
  101. PluginTextBox.TextChanged += ConfigValueChanged;
  102. PluginArgumentsTextBox.TextChanged += ConfigValueChanged;
  103. PluginOptionsTextBox.TextChanged += ConfigValueChanged;
  104. RemarksTextBox.TextChanged += ConfigValueChanged;
  105. TimeoutTextBox.TextChanged += ConfigValueChanged;
  106. PortableModeCheckBox.CheckedChanged += ConfigValueChanged;
  107. ServerPortTextBox.TextChanged += ConfigValueChanged;
  108. }
  109. private void Controller_ConfigChanged(object sender, EventArgs e)
  110. {
  111. LoadCurrentConfiguration();
  112. }
  113. private void ConfigValueChanged(object sender, EventArgs e)
  114. {
  115. isChange = true;
  116. ApplyButton.Enabled = true;
  117. }
  118. private bool ValidateAndSaveSelectedServerDetails(bool isSave = false, bool isCopy = false)
  119. {
  120. try
  121. {
  122. if (_lastSelectedIndex == -1 || _lastSelectedIndex >= _modifiedConfiguration.configs.Count)
  123. {
  124. return true;
  125. }
  126. bool verify = GetServerDetailsFromUI(out Server server, isSave, isCopy);
  127. if (server != null)
  128. {
  129. if (isSave || isCopy)
  130. Configuration.CheckServer(server);
  131. _modifiedConfiguration.configs[_lastSelectedIndex] = server;
  132. }
  133. return verify;
  134. }
  135. catch (Exception ex)
  136. {
  137. MessageBox.Show(ex.Message);
  138. }
  139. return false;
  140. }
  141. private bool GetServerDetailsFromUI(out Server server, bool isSave = false, bool isCopy = false)
  142. {
  143. server = null;
  144. bool? checkIP = false;
  145. bool? checkPort = false;
  146. bool? checkPassword = false;
  147. bool? checkTimeout = false;
  148. if ((checkIP = CheckIPTextBox(out string address, isSave, isCopy)).GetValueOrDefault(false) && address != null
  149. && (checkPort = CheckServerPortTextBox(out int? addressPort, isSave, isCopy)).GetValueOrDefault(false) && addressPort.HasValue
  150. && (checkPassword = CheckPasswordTextBox(out string serverPassword, isSave, isCopy)).GetValueOrDefault(false) && serverPassword != null
  151. && (checkTimeout = CheckTimeoutTextBox(out int? timeout, isSave, isCopy)).GetValueOrDefault(false) && timeout.HasValue)
  152. {
  153. server = new Server()
  154. {
  155. server = address,
  156. server_port = addressPort.Value,
  157. password = serverPassword,
  158. method = ((EncryptionMethod)EncryptionSelect.SelectedItem).name,
  159. plugin = PluginTextBox.Text,
  160. plugin_opts = PluginOptionsTextBox.Text,
  161. plugin_args = PluginArgumentsTextBox.Text,
  162. remarks = RemarksTextBox.Text,
  163. timeout = timeout.Value,
  164. group = GroupTextBox.Text
  165. };
  166. return true;
  167. }
  168. if (checkIP == null || checkPort == null || checkTimeout == null)
  169. {
  170. _modifiedConfiguration.configs.RemoveAt(_lastSelectedIndex);
  171. ServersListBox.SelectedIndexChanged -= ServersListBox_SelectedIndexChanged;
  172. int lastIndex = ServersListBox.SelectedIndex;
  173. LoadServerNameListToUI(_modifiedConfiguration);
  174. _lastSelectedIndex = (ServersListBox.SelectedIndex = (_lastSelectedIndex == ServersListBox.Items.Count ? lastIndex : lastIndex - 1));
  175. ServersListBox.SelectedIndexChanged += ServersListBox_SelectedIndexChanged;
  176. return true;
  177. }
  178. else
  179. return false;
  180. }
  181. #region GetServerDetailsFromUI Check
  182. private bool? CheckIPTextBox(out string address, bool isSave, bool isCopy)
  183. {
  184. address = null;
  185. string outAddress;
  186. if (Uri.CheckHostName(outAddress = IPTextBox.Text.Trim()) == UriHostNameType.Unknown)
  187. {
  188. if (!isSave && !isCopy && ServersListBox.Items.Count > 1 && I18N.GetString("New server").Equals(ServersListBox.Items[_lastSelectedIndex].ToString()))
  189. {
  190. DialogResult result = MessageBox.Show(I18N.GetString("Whether to discard unconfigured servers"), I18N.GetString("Operation failure"), MessageBoxButtons.OKCancel);
  191. if (result == DialogResult.OK)
  192. return null;
  193. }
  194. else if (isChange && !isSave && !isCopy)
  195. {
  196. var result = MessageBox.Show(I18N.GetString("Invalid server address, Cannot automatically save or discard changes"), I18N.GetString("Auto save failed"), MessageBoxButtons.OKCancel);
  197. if (result == DialogResult.Cancel)
  198. return false;
  199. else
  200. {
  201. address = _modifiedConfiguration.configs[_lastSelectedIndex].server;
  202. return true;
  203. }
  204. }
  205. else
  206. {
  207. MessageBox.Show(I18N.GetString("Invalid server address"), I18N.GetString("Operation failure"));
  208. IPTextBox.Focus();
  209. }
  210. return false;
  211. }
  212. else
  213. {
  214. address = outAddress;
  215. }
  216. return true;
  217. }
  218. private bool? CheckServerPortTextBox(out int? addressPort, bool isSave, bool isCopy)
  219. {
  220. addressPort = null;
  221. if (!int.TryParse(ServerPortTextBox.Text, out int outaddressPort))
  222. {
  223. if (!isSave && !isCopy && ServersListBox.Items.Count > 1 && I18N.GetString("New server").Equals(ServersListBox.Items[_lastSelectedIndex].ToString()))
  224. {
  225. DialogResult result = MessageBox.Show(I18N.GetString("Whether to discard unconfigured servers"), I18N.GetString("Operation failure"), MessageBoxButtons.OKCancel);
  226. if (result == DialogResult.OK)
  227. return null;
  228. }
  229. else if (isChange && !isSave && !isCopy)
  230. {
  231. var result = MessageBox.Show(I18N.GetString("Illegal port number format, Cannot automatically save or discard changes"), I18N.GetString("Auto save failed"), MessageBoxButtons.OKCancel);
  232. if (result == DialogResult.Cancel)
  233. return false;
  234. else
  235. {
  236. addressPort = _modifiedConfiguration.configs[_lastSelectedIndex].server_port;
  237. return true;
  238. }
  239. }
  240. else
  241. {
  242. MessageBox.Show(I18N.GetString("Illegal port number format"), I18N.GetString("Operation failure"));
  243. ServerPortTextBox.Focus();
  244. }
  245. return false;
  246. }
  247. else
  248. {
  249. addressPort = outaddressPort;
  250. }
  251. return true;
  252. }
  253. private bool? CheckPasswordTextBox(out string password, bool isSave, bool isCopy)
  254. {
  255. password = null;
  256. string outPassword;
  257. if (string.IsNullOrWhiteSpace(outPassword = PasswordTextBox.Text))
  258. {
  259. if (!isSave && !isCopy && ServersListBox.Items.Count > 1 && I18N.GetString("New server").Equals(ServersListBox.Items[_lastSelectedIndex].ToString()))
  260. {
  261. DialogResult result = MessageBox.Show(I18N.GetString("Whether to discard unconfigured servers"), I18N.GetString("Operation failure"), MessageBoxButtons.OKCancel);
  262. if (result == DialogResult.OK)
  263. return null;
  264. }
  265. else if (isChange && !isSave && !isCopy)
  266. {
  267. var result = MessageBox.Show(I18N.GetString("Password can not be blank, Cannot automatically save or discard changes"), I18N.GetString("Auto save failed"), MessageBoxButtons.OKCancel);
  268. if (result == DialogResult.Cancel)
  269. return false;
  270. else
  271. {
  272. password = _modifiedConfiguration.configs[_lastSelectedIndex].password;
  273. return true;
  274. }
  275. }
  276. else
  277. {
  278. MessageBox.Show(I18N.GetString("Password can not be blank"), I18N.GetString("Operation failure"));
  279. PasswordTextBox.Focus();
  280. }
  281. return false;
  282. }
  283. else
  284. {
  285. password = outPassword;
  286. }
  287. return true;
  288. }
  289. private bool? CheckTimeoutTextBox(out int? timeout, bool isSave, bool isCopy)
  290. {
  291. timeout = null;
  292. if (!int.TryParse(TimeoutTextBox.Text, out int outTimeout))
  293. {
  294. if (!isSave && !isCopy && ServersListBox.Items.Count > 1 && I18N.GetString("New server").Equals(ServersListBox.Items[_lastSelectedIndex].ToString()))
  295. {
  296. DialogResult result = MessageBox.Show(I18N.GetString("Whether to discard unconfigured servers"), I18N.GetString("Operation failure"), MessageBoxButtons.OKCancel);
  297. if (result == DialogResult.OK)
  298. return null;
  299. }
  300. else if (isChange && !isSave && !isCopy)
  301. {
  302. var result = MessageBox.Show(I18N.GetString("Illegal timeout format, Cannot automatically save or discard changes"), I18N.GetString("Auto save failed"), MessageBoxButtons.OKCancel);
  303. if (result == DialogResult.Cancel)
  304. return false;
  305. else
  306. {
  307. timeout = _modifiedConfiguration.configs[_lastSelectedIndex].timeout;
  308. return true;
  309. }
  310. }
  311. else
  312. {
  313. MessageBox.Show(I18N.GetString("Illegal timeout format"), I18N.GetString("Operation failure"));
  314. TimeoutTextBox.Focus();
  315. }
  316. return false;
  317. }
  318. else
  319. {
  320. timeout = outTimeout;
  321. }
  322. return true;
  323. }
  324. #endregion
  325. private void LoadSelectedServerDetails()
  326. {
  327. if (ServersListBox.SelectedIndex >= 0 && ServersListBox.SelectedIndex < _modifiedConfiguration.configs.Count)
  328. {
  329. Server server = _modifiedConfiguration.configs[ServersListBox.SelectedIndex];
  330. SetServerDetailsToUI(server);
  331. }
  332. }
  333. private void SetServerDetailsToUI(Server server)
  334. {
  335. IPTextBox.Text = server.server;
  336. ServerPortTextBox.Text = server.server_port.ToString();
  337. PasswordTextBox.Text = server.password;
  338. EncryptionSelect.SelectedItem = EncryptionMethod.GetMethod(server.method ?? Server.DefaultMethod);
  339. PluginTextBox.Text = server.plugin;
  340. PluginOptionsTextBox.Text = server.plugin_opts;
  341. PluginArgumentsTextBox.Text = server.plugin_args;
  342. bool showPluginArgInput = !string.IsNullOrEmpty(server.plugin_args);
  343. NeedPluginArgCheckBox.Checked = showPluginArgInput;
  344. ShowHidePluginArgInput(showPluginArgInput);
  345. RemarksTextBox.Text = server.remarks;
  346. TimeoutTextBox.Text = server.timeout.ToString();
  347. GroupTextBox.Text = server.group;
  348. isChange = false;
  349. }
  350. private void ShowHidePluginArgInput(bool show)
  351. {
  352. PluginArgumentsTextBox.Visible = show;
  353. PluginArgumentsLabel.Visible = show;
  354. }
  355. private void LoadServerNameListToUI(Configuration configuration)
  356. {
  357. ServersListBox.Items.Clear();
  358. foreach (Server server in configuration.configs)
  359. {
  360. ServersListBox.Items.Add(server.ToString());
  361. }
  362. }
  363. private void LoadCurrentConfiguration()
  364. {
  365. _modifiedConfiguration = controller.GetCurrentConfiguration();
  366. LoadServerNameListToUI(_modifiedConfiguration);
  367. _lastSelectedIndex = _modifiedConfiguration.index;
  368. if (_lastSelectedIndex < 0 || _lastSelectedIndex >= ServersListBox.Items.Count)
  369. {
  370. _lastSelectedIndex = 0;
  371. }
  372. ServersListBox.SelectedIndex = _lastSelectedIndex;
  373. UpdateButtons();
  374. LoadSelectedServerDetails();
  375. ProxyPortTextBox.Text = _modifiedConfiguration.localPort.ToString();
  376. PortableModeCheckBox.Checked = _modifiedConfiguration.portableMode;
  377. ApplyButton.Enabled = false;
  378. }
  379. private bool SaveValidConfiguration()
  380. {
  381. if (!ValidateAndSaveSelectedServerDetails(isSave: true))
  382. {
  383. return false;
  384. }
  385. int localPort = int.Parse(ProxyPortTextBox.Text);
  386. Configuration.CheckLocalPort(localPort);
  387. _modifiedConfiguration.localPort = localPort;
  388. _modifiedConfiguration.portableMode = PortableModeCheckBox.Checked;
  389. controller.SaveServers(_modifiedConfiguration.configs, _modifiedConfiguration.localPort, _modifiedConfiguration.portableMode);
  390. // SelectedIndex remains valid
  391. // We handled this in event handlers, e.g. Add/DeleteButton, SelectedIndexChanged
  392. // and move operations
  393. controller.SelectServerIndex(ServersListBox.SelectedIndex);
  394. return true;
  395. }
  396. private void ConfigForm_KeyDown(object sender, KeyEventArgs e)
  397. {
  398. // Sometimes the users may hit enter key by mistake, and the form will close without saving entries.
  399. if (e.KeyCode == Keys.Enter)
  400. {
  401. SaveValidConfiguration();
  402. }
  403. }
  404. private void ServersListBox_SelectedIndexChanged(object sender, EventArgs e)
  405. {
  406. if (!ServersListBox.CanSelect)
  407. {
  408. return;
  409. }
  410. if (_lastSelectedIndex == ServersListBox.SelectedIndex)
  411. {
  412. // we are moving back to oldSelectedIndex or doing a force move
  413. return;
  414. }
  415. if (!ValidateAndSaveSelectedServerDetails())
  416. {
  417. // why this won't cause stack overflow?
  418. ServersListBox.SelectedIndex = _lastSelectedIndex;
  419. return;
  420. }
  421. if (_lastSelectedIndex >= 0 && _lastSelectedIndex < _modifiedConfiguration.configs.Count)
  422. {
  423. ServersListBox.Items[_lastSelectedIndex] = _modifiedConfiguration.configs[_lastSelectedIndex].ToString();
  424. }
  425. UpdateButtons();
  426. LoadSelectedServerDetails();
  427. _lastSelectedIndex = ServersListBox.SelectedIndex;
  428. }
  429. private void AddButton_Click(object sender, EventArgs e)
  430. {
  431. if (ValidateAndSaveSelectedServerDetails(isSave: true))
  432. {
  433. Configuration.AddDefaultServerOrServer(_modifiedConfiguration);
  434. LoadServerNameListToUI(_modifiedConfiguration);
  435. _lastSelectedIndex = (ServersListBox.SelectedIndex = _modifiedConfiguration.configs.Count - 1);
  436. }
  437. }
  438. private void DuplicateButton_Click(object sender, EventArgs e)
  439. {
  440. if (ValidateAndSaveSelectedServerDetails(isCopy: true))
  441. {
  442. Server currServer = _modifiedConfiguration.configs[_lastSelectedIndex];
  443. Configuration.AddDefaultServerOrServer(_modifiedConfiguration, currServer, _lastSelectedIndex + 1);
  444. LoadServerNameListToUI(_modifiedConfiguration);
  445. _lastSelectedIndex = (ServersListBox.SelectedIndex = (_lastSelectedIndex + 1));
  446. }
  447. }
  448. private void DeleteButton_Click(object sender, EventArgs e)
  449. {
  450. _modifiedConfiguration.configs.RemoveAt(_lastSelectedIndex);
  451. if (_modifiedConfiguration.configs.Count == 0)
  452. {
  453. Configuration.AddDefaultServerOrServer(_modifiedConfiguration);
  454. }
  455. LoadServerNameListToUI(_modifiedConfiguration);
  456. ServersListBox.SelectedIndexChanged -= ServersListBox_SelectedIndexChanged;
  457. _lastSelectedIndex = (ServersListBox.SelectedIndex = (_lastSelectedIndex >= _modifiedConfiguration.configs.Count ? (_modifiedConfiguration.configs.Count - 1) : _lastSelectedIndex));
  458. ServersListBox.SelectedIndexChanged += ServersListBox_SelectedIndexChanged;
  459. LoadSelectedServerDetails();
  460. UpdateButtons();
  461. }
  462. private void UpdateButtons()
  463. {
  464. DeleteButton.Enabled = (ServersListBox.Items.Count > 0);
  465. MoveUpButton.Enabled = (ServersListBox.SelectedIndex > 0);
  466. MoveDownButton.Enabled = (ServersListBox.SelectedIndex < ServersListBox.Items.Count - 1);
  467. }
  468. private void MoveUpButton_Click(object sender, EventArgs e)
  469. {
  470. if (ServersListBox.SelectedIndex > 0)
  471. {
  472. MoveConfigItem(-1); // -1 means move backward
  473. }
  474. }
  475. private void MoveDownButton_Click(object sender, EventArgs e)
  476. {
  477. if (ServersListBox.SelectedIndex < ServersListBox.Items.Count - 1)
  478. {
  479. MoveConfigItem(+1); // +1 means move forward
  480. }
  481. }
  482. private void MoveConfigItem(int step)
  483. {
  484. var server = _modifiedConfiguration.configs[_lastSelectedIndex];
  485. var newIndex = _lastSelectedIndex + step;
  486. _modifiedConfiguration.configs.RemoveAt(_lastSelectedIndex);
  487. _modifiedConfiguration.configs.Insert(newIndex, server);
  488. ServersListBox.BeginUpdate();
  489. LoadServerNameListToUI(_modifiedConfiguration);
  490. _lastSelectedIndex = newIndex;
  491. ServersListBox.SelectedIndex = newIndex;
  492. ServersListBox.EndUpdate();
  493. UpdateButtons();
  494. }
  495. private void OKButton_Click(object sender, EventArgs e)
  496. {
  497. if (SaveValidConfiguration())
  498. {
  499. Close();
  500. }
  501. }
  502. private void CancelButton_Click(object sender, EventArgs e)
  503. {
  504. Close();
  505. }
  506. private void ApplyButton_Click(object sender, EventArgs e)
  507. {
  508. SaveValidConfiguration();
  509. }
  510. private void ConfigForm_Shown(object sender, EventArgs e)
  511. {
  512. IPTextBox.Focus();
  513. }
  514. private void ConfigForm_FormClosed(object sender, FormClosedEventArgs e)
  515. {
  516. controller.ConfigChanged -= Controller_ConfigChanged;
  517. }
  518. private void ShowPasswdCheckBox_CheckedChanged(object sender, EventArgs e)
  519. {
  520. PasswordTextBox.UseSystemPasswordChar = !ShowPasswdCheckBox.Checked;
  521. }
  522. private void UsePluginArgCheckBox_CheckedChanged(object sender, EventArgs e)
  523. {
  524. ShowHidePluginArgInput(NeedPluginArgCheckBox.Checked);
  525. }
  526. private void EncryptionSelect_SelectedIndexChanged(object sender, EventArgs e)
  527. {
  528. }
  529. }
  530. }