Пример #1
0
 void StartServerList()
 {
     if (c == null)
     {
         c           = new LoginClientMinecraft();
         c.Progress += new EventHandler <ProgressEventArgs>(c_Progress);
         DrawServerList();
         TabControl1.SelectTab(1);
     }
 }
Пример #2
0
        private void SetLoginData(string url)
        {
            LoginClientMinecraft c         = new LoginClientMinecraft();
            LoginData            logindata = c.Login(textBox2.Text, textBox3.Text, url);

            if (logindata == null)
            {
                MessageBox.Show("Error logging you in, check if minecraft.net is up or try again later");
                return;
            }
            this.LoginIp       = logindata.serveraddress;
            this.LoginPassword = logindata.mppass;
            this.LoginPort     = logindata.port.ToString();
            this.LoginUser     = textBox2.Text;
        }