public void DeleteControl(LynxPanelObjectControl c) { if (stackContent.Children.Contains(c)) { stackContent.Children.Remove(c); } }
public void AddControl(LynxPanelObjectControl c) { if (!stackContent.Children.Contains(c)) { stackContent.Children.Add(c); } }
public void ClearActive() { foreach (FrameworkElement fe in stackContent.Children) { LynxPanelObjectControl lc = fe as LynxPanelObjectControl; if (lc != null) { lc.IsActive = false; } } }
public List <LynxPanelObjectControl> getShowControl(IPanelShowObject o) { List <LynxPanelObjectControl> cl = new List <LynxPanelObjectControl>(); foreach (FrameworkElement fe in stackContent.Children) { LynxPanelObjectControl lc = fe as LynxPanelObjectControl; if (lc != null) { if (lc.DataObject == o || (lc.DataObject.ObjectID != null && lc.DataObject.ObjectID != "" && lc.DataObject.ObjectID == o.ObjectID)) { cl.Add(lc); } } } return(cl); }