// ======================================== // 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; } }; }
// ======================================== // constructor // ======================================== public CompositeRole() : base() { _composite = new CompositeSupport <IRole, CompositeRole>(this); }
// ======================================== // constructor // ======================================== public CompositeCommand() { _composite = new CompositeSupport <ICommand, CompositeCommand>(this); _composite.DetailedPropertyChanged += HandleChildrenChanged; }
// ======================================== // constructor // ======================================== public CompositeCondition() { _composite = new CompositeSupport <Condition, CompositeCondition>(this); }