BF2Statistics.AccountEditForm.GpcmClient_OnDisconnect C# (CSharp) Method

GpcmClient_OnDisconnect() private method

We cant modify connected client accounts. When the account goes offline, we re-enable the update button and status
private GpcmClient_OnDisconnect ( object sender ) : void
sender object
return void
        private void GpcmClient_OnDisconnect(object sender)
        {
            GpcmClient Client = (GpcmClient)sender;
            if (Client.PlayerId == AccountId)
            {
                // Since we are in a different thread, Invoke
                Invoke(new Action( () =>
                {
                    SatusLabel.Text = "Offline";
                    UpdateBtn.Enabled = true;
                    DeleteBtn.Enabled = true;
                    DisconnectBtn.Enabled = false;
                }));
            }
        }