Esempio n. 1
0
        private static void OnItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            PredecessorItem item = d as PredecessorItem;

            if (item != null)
            {
                item.OnChanged();
            }
        }
Esempio n. 2
0
        internal void Delete()
        {
            PredecessorItem dataContext = base.DataContext as PredecessorItem;

            if (dataContext != null)
            {
                GanttChartItem dependentItem = dataContext.DependentItem;
                if (dependentItem != null)
                {
                    dependentItem.Predecessors.Remove(dataContext);
                }
            }
        }