Ejemplo n.º 1
0
 private void SetLoginData(string url)
 {
     LoginClientMinecraft c = new LoginClientMinecraft();
     LoginData logindata = c.Login(textBox2.Text, textBox3.Text, url);
     this.LoginIp = logindata.serveraddress;
     this.LoginPassword = logindata.mppass;
     this.LoginPort = logindata.port.ToString();
     this.LoginUser = textBox2.Text;
 }
Ejemplo n.º 2
0
        private void Button2_Click_3(object sender, EventArgs e)
        {
            if (textBox2.Text == "" || textBox3.Text == "")
            {
                MessageBox.Show("Enter username and password.");
                return;
            }
            if (c == null)
            {
                c = new LoginClientMinecraft();
                c.Progress += new EventHandler<ProgressEventArgs>(c_Progress);

                if (checkBox1.Checked)
                {
                    RememberPassword(textBox2.Text, textBox3.Text);
                }
                DrawServerList();
                TabControl1.SelectTab(1);
            }
        }