Esempio n. 1
0
        public override bool InfoEntryVisible(ViewContext context, InfoBox.InfoEntry entry)
        {
            if (entry.AlwaysVisible)
            {
                return(true);
            }

            return(VisibilityForContext(context, "infobox", entry.Id, true));
        }
Esempio n. 2
0
        public override void SetInfoEntryVisible(ViewContext context, InfoBox.InfoEntry entry, bool visible)
        {
            Hyena.Log.Debug($"Set Visibility for Entry {entry.Id} to {visible}");
            if (entry.AlwaysVisible)
            {
                throw new Exception("entry visibility cannot be set");
            }

            SetVisibilityForContext(context, "infobox", entry.Id, visible);
        }
Esempio n. 3
0
 public abstract void SetInfoEntryVisible(ViewContext context, InfoBox.InfoEntry entry, bool visible);
Esempio n. 4
0
 public abstract bool InfoEntryVisible(ViewContext context, InfoBox.InfoEntry entry);