Example #1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Log.Out("btnLogin_Click");

            /*
             * //Testing Downloader..
             * DownloadManager.Downloader d = new DownloadManager.Downloader(@"http://mirror.internode.on.net/pub/test/10meg.test", "file.test", pbarStatus);
             * d.AttachStatusLabel(lblStatus);
             * d.Start();
             */

            if (!string.IsNullOrEmpty(tbAccount.Text) && !string.IsNullOrEmpty(tbPassword.Text))
            {
                Account account = null;

                if (Login(tbAccount.Text, tbPassword.Text, out account))
                {
                    if (account != null)
                    {
                        Minecraft.Launch(Settings.JavaPath, Settings.JavaOptions, account.IGN, account.Token, Settings.UseJavaDebug);
                    }
                    else
                    {
                        Log.Warn("Invalid username or password");
                    }
                }
            }
            else
            {
                Log.Warn("Username and password required");
            }
        }
Example #2
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            Log.Out("btnLogin_Click");

            if (!string.IsNullOrEmpty(tbAccount.Text))
            {
                Account account = null;
                account       = new Account(tbAccount.Text);
                account.IGN   = tbAccount.Text;
                account.Token = "HAX";

                if (account != null)
                {
                    Minecraft.Launch(Settings.JavaPath, Settings.JavaOptions, account.IGN, account.Token, Settings.UseJavaDebug);
                }
            }
            else
            {
                Log.Warn("Username is required");
            }
        }