Ejemplo n.º 1
0
        private static void OnIsCompletedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            GanttChartItem item = d as GanttChartItem;

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

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

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

            if (item != null)
            {
                item.OnPropertyChanged("AssignmentsContent");
                item.OnAssignmentsChanged();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }