Beispiel #1
0
        /// <summary>
        /// Charge le scénario d'origine.
        /// </summary>
        protected virtual void LoadOriginalScenario(Scenario oldValue, Scenario newValue)
        {
            if (this.SelectedOriginalScenario != null)
            {
                this.SelectedOriginalActionItems = new BulkObservableCollection <GanttChartItem>();
                _originalActionsManager          = new GanttActionsManager(this.SelectedOriginalActionItems, null, null);
                _originalActionsManager.ChangeView(GanttGridView.WBS, null);

                _originalActionsManager.EnableReducedPercentageRefresh = false;

                _originalActionsManager.RegisterInitialActions(this.SelectedOriginalScenario.Actions, this.SelectedIESFilter.Value);

                UpdateOriginalRatio();
            }
            else
            {
                if (this.SelectedOriginalActionItems != null)
                {
                    this.SelectedOriginalActionItems.Clear();
                }
                if (_originalActionsManager != null)
                {
                    _originalActionsManager.Clear();
                }
            }
        }