Example #1
0
        /// <summary>
        /// Reproduce the project image.
        /// </summary>
        public void RefreshProjectImageExecute()
        {
            IsLoading = true;

            // Refresh the project image
            _pm.RefreshProjectImage(ProjectName);

            // Get the Project from the PM
            Project prj = _pm.GetProject(_ProjectName);

            // Display the new image
            System.Windows.Application.Current.Dispatcher.BeginInvoke(new System.Action(() =>
            {
                GetProjectImage(prj);
                NumEnsembles = prj.GetNumberOfEnsembles();
                GetFirstLastDate(prj);
                prj.Dispose();

                IsLoading = false;
            }));
        }