private void playOffline_Click(object sender, EventArgs e) { BanchoClient.Disconnect(true); ConfigManager.sUsername = ""; ConfigManager.sPassword = ""; if (enabled) { Close(); } else { enabled = true; } }
private void button2_Click(object sender, EventArgs e) { if (ConfigManager.sUsername != oldUsername) { ConfigManager.sUsername = oldUsername; } ConfigManager.sPassword = oldPassword; if (enabled) { Close(); } else { BanchoClient.Disconnect(true); enabled = true; } }