Inheritance: System.EventArgs
Exemple #1
0
        private void ClientRegistration(RegistrationEventArgs e)
        {
            if (!e.Registered)
              {
            SelectedRoom.AddSystemMessage(Localizer.Instance.Localize(e.Message));

            if (ClientModel.IsInited)
              ClientModel.Reset();
              }
        }
Exemple #2
0
    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);
    }