public void RedrawButton(DashboardButton b) { DashboardButtonObject co = Objects.OfType <DashboardButtonObject> ().FirstOrDefault(o => o.Button == b); if (co != null) { co.ReDraw(); } }
public LinkAnchorObject(DashboardButtonObject button, List<Tag> tags, Point relPos) { RelativePosition = relPos; width = height = 0; Button = button; if (tags == null) tags = new List<Tag> (); Tags = tags; LoadSurfaces (); iconHeight = InIcon.Height; iconWidth = InIcon.Width; }
public void Click(DashboardButton b, Tag tag = null) { DashboardButtonObject co = Objects.OfType <DashboardButtonObject> ().FirstOrDefault(o => o.Button == b); if (tag != null && co is CategoryObject) { (co as CategoryObject).ClickTag(tag); } else { co.Click(); } }
public void AddButton(DashboardButtonObject button) { button.ShowLinks = ShowLinks; AddObject(button); buttonsDict.Add(button.Button, button); }