Exemple #1
0
        private static void OnIsCompletedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("IsCompleted");
                item.CoerceCompletion();
            }
        }
Exemple #2
0
        private static void OnPredecessorsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("Predecessors");
                item.OnPredecessorsChanged();
            }
        }
Exemple #3
0
        private static void OnDisplayRowIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("DisplayRowIndex");
                item.OnDisplayRowIndexChanged();
            }
        }
Exemple #4
0
        private static void OnAssignmentsContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("AssignmentsContent");
                item.OnAssignmentsChanged();
            }
        }
Exemple #5
0
        private static void OnStartChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("Start");
                item.OnTimingChanged();
                item.UpdateDependencyLines();
            }
        }
Exemple #6
0
        private static void OnCompletedFinishChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("CompletedFinish");
                item.OnTimingChanged();
                item.UpdateIsCompleted();
            }
        }
Exemple #7
0
        private static void OnIsMilestoneChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("IsMilestone");
                item.UpdateComputedTaskTemplate();
                item.OnTimingChanged();
                item.UpdateDependencyLines();
                item.UpdateIsCompleted();
            }
        }
Exemple #8
0
        private static void OnActualDisplayRowIndexChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

            if (item != null)
            {
                item.OnPropertyChanged("ActualDisplayRowIndex");
                item.OnActualDisplayRowIndexChanged();
                item.UpdateComputedItemTop();
                item.UpdateBar();
                item.UpdateDependencyLines();
            }
        }