private void ClientRegistration(RegistrationEventArgs e) { if (!e.Registered) { SelectedRoom.AddSystemMessage(Localizer.Instance.Localize(e.Message)); if (ClientModel.IsInited) ClientModel.Reset(); } }
private void ClientRegistration(object sender, RegistrationEventArgs e) { Dispatcher.BeginInvoke(new Action<RegistrationEventArgs>(args => { if (!args.Registered) { SelectedRoom.AddSystemMessage(args.Message); if (ClientModel.IsInited) ClientModel.Reset(); } }), e); }