Exemplo n.º 1
0
 public void DeleteControl(LynxPanelObjectControl c)
 {
     if (stackContent.Children.Contains(c))
     {
         stackContent.Children.Remove(c);
     }
 }
Exemplo n.º 2
0
 public void AddControl(LynxPanelObjectControl c)
 {
     if (!stackContent.Children.Contains(c))
     {
         stackContent.Children.Add(c);
     }
 }
Exemplo n.º 3
0
 public void ClearActive()
 {
     foreach (FrameworkElement fe in stackContent.Children)
     {
         LynxPanelObjectControl lc = fe as LynxPanelObjectControl;
         if (lc != null)
         {
             lc.IsActive = false;
         }
     }
 }
Exemplo n.º 4
0
        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);
        }