private void openLoginScreen()
 {
     myClient.CloseSocket(true);
     myClient = new SocketClient("127.0.0.1", 20000, false, ((char)2).ToString(), ((char)3).ToString());
     startupScreen = new LoginScreen(myClient, this);
     startupScreen.Show();
     startupScreen.FormClosed += new FormClosedEventHandler(userLoggedIn);
 }
        public void userLoggedIn(object sender, EventArgs e)
        {
            if (UserDetails == null)
            {
                this.Close();
                return;
            }

            startupScreen = null;
            this.Visible = true;
            WindowState = FormWindowState.Normal;
            myUID = long.Parse(UserDetails.userID);
        }