private void HandleInputPageCompleted(object sender, InputPageCompletedEventArgs e)
        {
            Debug.Assert(e != null);

            if (e.Cancelled)
            {
                Close();
                return;
            }

            var progressPage = new ProgressPageViewModel(_args);
            progressPage.Completed += HandleProgressPageCompleted;

            CurrentPage = progressPage;
        }
Example #2
0
        private void HandleInputPageCompleted(object sender, InputPageCompletedEventArgs e)
        {
            Debug.Assert(e != null);

            if (e.Cancelled)
            {
                Close();
                return;
            }

            var progressPage = new ProgressPageViewModel(_args);

            progressPage.Completed += HandleProgressPageCompleted;

            CurrentPage = progressPage;
        }
Example #3
0
        private async void HandleInputPageCompleted(object sender, InputPageCompletedEventArgs e)
        {
            Contract.Requires(e != null);

            if (e.Cancelled)
            {
                Close();
                return;
            }

            var parameters = await _parseArgsTask;
            var progressPage = new ProgressPageViewModel(parameters);
            progressPage.Completed += HandleProgressPageCompleted;

            CurrentPage = progressPage;

            // Kick-off resizing
            progressPage.ResizeAsync();
        }