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