private void btnGetUsername_Click(object sender, RoutedEventArgs e)
        {
            ApiWaiting       = new PleaseWait();
            ApiWaiting.Title = strings.AccountManager_TokenValidation;
            ApiWaiting.Owner = this;
            ApiWaiting.Show();
            string      token = txtToken.Text;
            ThreadStart start = delegate()
            {
                XmlClient client = new XmlClient(_settings.UserLanguage, token);
                try
                {
                    string        message;
                    List <string> result = client.GetUsernameByToken(out message);

                    /*for (int i = 1; i < 100; i++)
                     * {
                     *  result = client.GetUsernameByToken(out message);
                     *  if (!String.IsNullOrEmpty(message))
                     *  {
                     *      Dispatcher.Invoke(DispatcherPriority.Background,
                     *                  new Action<string>(TokenError),
                     *                  message);
                     *      break;
                     *  }
                     * }*/

                    if (result.Count > 0)
                    {
                        Dispatcher.Invoke(DispatcherPriority.Background,
                                          new Action <List <string> >(InitializeUsernameList),
                                          result);
                    }
                    else
                    {
                        Dispatcher.Invoke(DispatcherPriority.Background,
                                          new Action <string>(TokenError),
                                          message);
                    }
                }
                catch
                {
                    Dispatcher.Invoke(DispatcherPriority.Background,
                                      new Action <List <string> >(InitializeUsernameList),
                                      null);
                }
            };

            new System.Threading.Thread(start).Start();
        }