예제 #1
0
        protected void RemoveLayoutInformationForChild(Control child)
        {
            LayoutInformation layoutInformation = LayoutInformation.FirstOrDefault(li => li.Control == child);

            if (layoutInformation == null)
            {
                return;
            }
            LayoutInformation.Remove(layoutInformation);
        }
예제 #2
0
        protected LayoutInformation GetLayoutInformationForChild(Control child)
        {
            LayoutInformation layoutInformation = LayoutInformation.FirstOrDefault(li => li.Control == child);

            if (layoutInformation == null)
            {
                layoutInformation = new LayoutInformation(child);
                LayoutInformation.Add(layoutInformation);
            }
            return(layoutInformation);
        }