Пример #1
0
        private void Exit(object sender, RoutedEventArgs routedEventArgs)
        {
            ModifyAccount modifyAccount = new ModifyAccount();

            modifyAccount.EmailReceived(emailAccount);
            modifyAccount.InitializeDataPlayer();
            modifyAccount.Show();
            this.Close();
        }
Пример #2
0
 private void UpdateAccount(object sender, RoutedEventArgs e)
 {
     try
     {
         ModifyAccount modifyAccount = new ModifyAccount();
         modifyAccount.EmailReceived(emailAccount);
         modifyAccount.ObtainAccount();
         modifyAccount.Show();
         this.Close();
     } catch (EndpointNotFoundException exception)
     {
         TelegramBot.SendToTelegram(exception);
         LogException.Log(this, exception);
         LogException.ErrorConnectionService();
     }
 }