internal void SetContext (ITreeBuilderContext context) { this.context = context; try { Initialize (); } catch (Exception ex) { LoggingService.LogError (ex.ToString ()); } }
internal void SetContext(ITreeBuilderContext context) { this.context = context; try { Initialize(); } catch (Exception ex) { LoggingService.LogError(ex.ToString()); } }
public static void UpdateChildrenFor <T> (this ITreeBuilderContext context, T item) { ITreeBuilder builder = context.GetTreeBuilder(item); if (builder != null) { builder.UpdateChildren(); } }
static Image FadeIcon(Image icon, ITreeBuilderContext context) { Image fadedIcon = context.GetComposedIcon(icon, "fade"); if (fadedIcon == null) { fadedIcon = icon.WithAlpha(0.5); context.CacheComposedIcon(fadedIcon, "fade", icon); } return(fadedIcon); }
internal void SetContext(ITreeBuilderContext context) { this.context = context; Initialize (); }
public static void FadeFolderIcon(this NodeInfo nodeInfo, ITreeBuilderContext context) { nodeInfo.Icon = FadeIcon(nodeInfo.Icon, context); nodeInfo.ClosedIcon = FadeIcon(nodeInfo.ClosedIcon, context); }