private void SetUpDependentOption(IOptionEntity option, BoolOptionViewModel parentOption) { // Note: The `Compose(parentOption.IsEnabledProperty)` starts to become important at the second "level". parentOption.CheckedProperty.Compose(myLifetime, parentOption.IsEnabledProperty) .Select(myLifetime, "checked and enabled", pair => pair.First && pair.Second) .FlowInto(myLifetime, option.GetIsEnabledProperty()); }
protected void WithIndent(IOptionEntity entity) { SetIndent(entity, myCurrentIndent); }
protected IOptionEntity WithIndent(IOptionEntity entity) { SetIndent(entity, myCurrentIndent); return(entity); }