Exemplo n.º 1
0
        private void CurrentViewModel_DownloadProgressEvent(object sender, SimpleMvvmToolkit.NotificationEventArgs <int> e)
        {
            if (downloadPrompt == null)
            {
                return;
            }

            Debug.WriteLine("CurrentViewModel_DownloadProgressEvent");
            DownloadPopupContentControl control = (DownloadPopupContentControl)downloadPrompt.Body;

            control.SetPercentProgress(e.Data);
            //downloadPrompt.Message = e.Data.ToString();
        }
Exemplo n.º 2
0
        private void CurrentViewModel_InstallFilesProgress(object sender, SimpleMvvmToolkit.NotificationEventArgs <int> e)
        {
            if (downloadPrompt == null)
            {
                return;
            }

            Debug.WriteLine("CurrentViewModel_InstallFilesProgress");
            DownloadPopupContentControl control = (DownloadPopupContentControl)downloadPrompt.Body;

            control.SetTitleText(AppResources.PopupLevelsDownloadInstallationProgress);
            control.SetPercentProgress(e.Data);
            //control.PercentTextblock.Visibility = System.Windows.Visibility.Collapsed;
            //control.ProgressBar.Visibility = System.Windows.Visibility.Collapsed;
        }