Ejemplo n.º 1
0
        // ========================================
        // constructor
        // ========================================
        public CompositeHandle(bool hideOnFocus) : base(hideOnFocus)
        {
            _composite = new CompositeSupport <IAuxiliaryHandle, CompositeHandle>(this);
            _composite.DetailedPropertyChanged += (sender, e) => {
                if (e.PropertyName == ICompositeProperty.Children)
                {
                    OnChildrenChanged(e);
                }
            };

            _figure = new FigureGroup();
            _figure.VisibleChanged += (sender, e) => {
                foreach (var child in Children)
                {
                    child.Figure.IsVisible = _figure.IsVisible;
                }
            };
        }
Ejemplo n.º 2
0
 // ========================================
 // constructor
 // ========================================
 public CompositeRole() : base()
 {
     _composite = new CompositeSupport <IRole, CompositeRole>(this);
 }
Ejemplo n.º 3
0
 // ========================================
 // constructor
 // ========================================
 public CompositeCommand()
 {
     _composite = new CompositeSupport <ICommand, CompositeCommand>(this);
     _composite.DetailedPropertyChanged += HandleChildrenChanged;
 }
Ejemplo n.º 4
0
 // ========================================
 // constructor
 // ========================================
 public CompositeCondition()
 {
     _composite = new CompositeSupport <Condition, CompositeCondition>(this);
 }