Exemple #1
0
		internal void SetContext (ITreeBuilderContext context)
		{
			this.context = context;
			try {
				Initialize ();
			} catch (Exception ex) {
				LoggingService.LogError (ex.ToString ());
			}
		}
Exemple #2
0
 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();
            }
        }
Exemple #4
0
        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 ();
 }
Exemple #6
0
 public static void FadeFolderIcon(this NodeInfo nodeInfo, ITreeBuilderContext context)
 {
     nodeInfo.Icon       = FadeIcon(nodeInfo.Icon, context);
     nodeInfo.ClosedIcon = FadeIcon(nodeInfo.ClosedIcon, context);
 }