Interaction logic for UploadWizard.xaml
Inheritance: System.Windows.Window
Ejemplo n.º 1
0
        /// <summary>
        /// Starts the upload wizard
        /// </summary>
        private static void UploadTrackedData(bool isManually = true)
        {
            // log
            if (isManually)
            {
                Database.GetInstance().LogInfo("The participant manually opened the upload wizard.");
            }
            else
            {
                Database.GetInstance().LogInfo("The participant opened the upload wizard after the upload reminder prompt.");
            }

            // show pop-up
            Application.Current.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(
                                                      () =>
            {
                var uploaderWindow = new Upload.UploadWizard();
                uploaderWindow.ShowDialog();
            }));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Starts the upload wizard
        /// </summary>
        private static void UploadTrackedData(bool isManually = true)
        {
            // log
            if (isManually)
            {
                Database.GetInstance().LogInfo("The participant manually opened the upload wizard.");
            }
            else
            {
                Database.GetInstance().LogInfo("The participant opened the upload wizard after the upload reminder prompt.");
            }

            // show pop-up
            Application.Current.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(
            () =>
            {
                var uploaderWindow = new Upload.UploadWizard();
                uploaderWindow.ShowDialog();
            }));
        }