Example #1
0
        /// <summary>
        ///     Handles the Click event of the loadButton control.
        ///     Message Dialog retrieved from
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="Windows.UI.Xaml.RoutedEventArgs" /> instance containing the event data.</param>
        private async void loadButton_Click(object sender, RoutedEventArgs e)
        {
            this.skipAll                 = false;
            this.entriesToReplace        = new List <FitbitEntry>();
            this.duplicatedDatesNotToAdd = new List <DateTime>();

            var file = await FileSelector.PickFile();

            if (!this.fitbitJournal.IsEmpty())
            {
                if (await handleEmptyFitbitJournal(sender, e))
                {
                    return;
                }
            }
            await this.parseFile(file);

            this.replaceEntries();

            await this.generateHistogram();
        }