private void Exit(object sender, RoutedEventArgs routedEventArgs) { ModifyAccount modifyAccount = new ModifyAccount(); modifyAccount.EmailReceived(emailAccount); modifyAccount.InitializeDataPlayer(); modifyAccount.Show(); this.Close(); }
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(); } }