BF2Statistics.AccountEditForm.GpcmClient_OnSuccessfulLogin C# (CSharp) Method

GpcmClient_OnSuccessfulLogin() private method

We cant modify connected client accounts. When the account logs in, we disable the update buttonn and update the status
private GpcmClient_OnSuccessfulLogin ( object sender ) : void
sender object
return void
        private void GpcmClient_OnSuccessfulLogin(object sender)
        {
            GpcmClient Client = (GpcmClient)sender;
            if (Client.PlayerId == AccountId)
            {
                // Since we are in a different thread, Invoke
                Invoke(new Action( () =>
                {
                    SatusLabel.Text = "Online (IP: " + Client.RemoteEndPoint.Address.ToString() + ")";
                    UpdateBtn.Enabled = false;
                    DeleteBtn.Enabled = false;
                    DisconnectBtn.Enabled = true;
                }));
            }
        }