Exemple #1
0
        /// <summary>
        /// Callback when all exports have completed
        /// </summary>
        private void ExportCompleted(List <String> acctList)
        {
            String accts = "";

            if (acctList.Count == 1)
            {
                accts = "\n" + acctList.ElementAt(0);
            }
            else
            {
                for (int i = 0; i < acctList.Count; i++)
                {
                    accts += "\n" + acctList.ElementAt(i);
                }
            }

            Deployment.Current.Dispatcher.BeginInvoke(() => {
                Datastore.ClearAllTransactions();
                ProgressBar.IsIndeterminate = false;
                ProgressBar.Visibility      = Visibility.Collapsed;
                MessageBox.Show("These accounts were exported to the YNABcompanion Dropbox folder: " + accts);
            });
        }