Esempio n. 1
0
        private void playOffline_Click(object sender, EventArgs e)
        {
            BanchoClient.Disconnect(true);

            ConfigManager.sUsername = "";
            ConfigManager.sPassword = "";

            if (enabled)
            {
                Close();
            }
            else
            {
                enabled = true;
            }
        }
Esempio n. 2
0
        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;
            }
        }