void client_OnLoginSuccess(string phoneNumber, byte[] data) { this.bgWorker.DoWork += ProcessMessages; this.bgWorker.RunWorkerAsync(); this.isRunning = true; client.SendGetGroups(); }