Пример #1
0
 public void UnbindControl(PanelControl c)
 {
     if (Ctl_List.Contains(c))
     {
         Ctl_List.Remove(c);
     }
 }
Пример #2
0
        public PanelControl BindPanelControl(PanelControl control)
        {
            int index = Ctl_List.Count;

            control.Parent = this;


            switch (Layout)
            {
            case PanelLayout.Horizontal:
                control.ClientArea = _client_area;
                Ctl_List.Add(control);

                Layout_Horizontal();
                break;

            case PanelLayout.Vertical:
                control.ClientArea = _client_area;
                Ctl_List.Add(control);

                Layout_Vertical();
                break;

            case PanelLayout.VerticalFree:
                Ctl_List.Add(control);

                Layout_VerticalFree();
                break;

            case PanelLayout.HorizontalFree:
                Ctl_List.Add(control);

                Layout_HorzontalFree();
                break;
            }

            return(Ctl_List[index]);
        }
Пример #3
0
 public void UnbindControl(PanelControl c)
 {
     if (Ctl_List.Contains(c))
     {
         Ctl_List.Remove(c);
     }
 }
Пример #4
0
        public PanelControl BindPanelControl(PanelControl control)
        {
            int index = Ctl_List.Count;
            control.Parent = this;

            
            switch(Layout) {
                case PanelLayout.Horizontal:
                    control.ClientArea = _client_area;
                    Ctl_List.Add(control);

                    Layout_Horizontal();
                    break;
                case PanelLayout.Vertical:
                    control.ClientArea = _client_area;
                    Ctl_List.Add(control);

                    Layout_Vertical();
                    break;
                case PanelLayout.VerticalFree:
                    Ctl_List.Add(control);

                    Layout_VerticalFree();
                    break;
                case PanelLayout.HorizontalFree:
                    Ctl_List.Add(control);

                    Layout_HorzontalFree();
                    break;
            }

            return Ctl_List[index];
        }