Exemplo n.º 1
0
        public override bool CanBeResized()
        {
            GanttViewSummaryItemElement parent = this.Parent as GanttViewSummaryItemElement;

            if (parent != null && !parent.GraphicalViewElement.GanttViewElement.ReadOnly)
            {
                return(parent.GraphicalViewElement.GanttViewElement.AllowSummaryEditing);
            }
            return(base.CanBeResized());
        }
Exemplo n.º 2
0
        protected override bool CanDragCore(Point dragStartPoint)
        {
            GanttViewSummaryItemElement parent = this.Parent as GanttViewSummaryItemElement;

            if (parent != null)
            {
                return(parent.GraphicalViewElement.GanttViewElement.AllowSummaryEditing);
            }
            return(base.CanDragCore(dragStartPoint));
        }