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

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

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

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

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