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