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;
}));
}
}