private void DeleteAccountPlayer(object sender, RoutedEventArgs routedEventArgs)
 {
     try
     {
         InstanceContext     instanceContext = new InstanceContext(this);
         PlayerManagerClient playerManager   = new PlayerManagerClient(instanceContext);
         playerManager.DeleteAccountPlayer(player.NickName);
         bool isDeletePlayer = responseBoolean;
         if (isDeletePlayer)
         {
             OpenMessageBox(Properties.Resources.DeleteAccountMessage, Properties.Resources.DeleteAccountMessageTitle, (MessageBoxImage)System.Windows.Forms.MessageBoxIcon.Information);
             MainWindow main = new MainWindow();
             main.Show();
             this.Close();
         }
         else
         {
             OpenMessageBox(Properties.Resources.NoDeleteAccountMessage, Properties.Resources.DeleteAccountMessageTitle, (MessageBoxImage)System.Windows.Forms.MessageBoxIcon.Error);
         }
     } catch (EndpointNotFoundException exception)
     {
         TelegramBot.SendToTelegram(exception);
         LogException.Log(this, exception);
         LogException.ErrorConnectionService();
     }
 }