I hate this gotcha of c#

This commit is contained in:
Jordan Brown
2018-01-24 00:19:59 -05:00
committed by GitHub
parent d90e7b7250
commit 38ca8d58dd
+4 -1
View File
@@ -50,10 +50,13 @@ namespace TGS.ControlPanel
switch (start) {
case 1:
IPComboBox.Text = "";
goto case 2:
case 2:
PortSelector.Value = 38607;
PortSelector.Value = 38607;
goto case 3:
case 3:
UsernameTextBox.Text = "";
goto case 4:
case 4:
if (currentLoginInfo.HasPassword)
PasswordTextBox.Text = "";