public static List <Control> add_SplitContainer_1x1(this Control control, string title_1, string title_2, bool verticalSplit, int spliterDistance)
        {
            SplitContainer splitControl_1 = control.add_SplitContainer(
                verticalSplit, //setOrientationToHorizontal
                true,          // setDockStyleoFill
                true);         // setBorderStyleTo3D

            return((List <Control>)splitControl_1.invokeOnThread(
                       () =>
            {
                if (spliterDistance > splitControl_1.Panel1MinSize && spliterDistance < splitControl_1.Width - splitControl_1.Panel2MinSize)
                {
                    splitControl_1.SplitterDistance = spliterDistance;
                }
                else
                {
                    "In add_SplitContainer_1x1, could not set the spliterDistance value of: {0}".format(spliterDistance).error();
                }

                GroupBox groupBox_1 = splitControl_1.Panel1.add_GroupBox(title_1);
                GroupBox groupBox_2 = splitControl_1.Panel2.add_GroupBox(title_2);
                var controls = new List <Control>();
                controls.add(groupBox_1);
                controls.add(groupBox_2);
                return controls;
            }));
        }
 public static SplitContainer splitterWidth(this SplitContainer splitContainer, int value)
 {
     if (splitContainer.notNull())
     {
         splitContainer.invokeOnThread(() => splitContainer.SplitterWidth = value);
     }
     return(splitContainer);
 }
 public static SplitContainer panel1Collapsed(this SplitContainer control, bool value)
 {
     return((SplitContainer)control.invokeOnThread(
                () =>
     {
         control.Panel1Collapsed = value;
         return control;
     }));
 }
 public static SplitContainer fixedPanel2(this SplitContainer control)
 {
     return((SplitContainer)control.invokeOnThread(
                () =>
     {
         control.FixedPanel = FixedPanel.Panel2;
         return control;
     }));
 }
 public static SplitContainer borderNone(this SplitContainer control)
 {
     return((SplitContainer)control.invokeOnThread(
                () =>
     {
         control.BorderStyle = BorderStyle.None;
         return control;
     }));
 }
 public static SplitContainer isFixed(this SplitContainer splitContainer, bool value)
 {
     splitContainer.invokeOnThread(
         () => {
         splitContainer.IsSplitterFixed = value;
         splitContainer.SplitterWidth   = 1;
     });
     return(splitContainer);
 }
 public static SplitContainer minimumSize(this SplitContainer splitContainer, int size)
 {
     splitContainer.invokeOnThread(
         () =>
     {
         splitContainer.Panel1MinSize = size;
         splitContainer.Panel2MinSize = size;
     });
     return(splitContainer);
 }
 public static SplitContainer splitterDistance(this SplitContainer control, int value)
 {
     return((SplitContainer)control.invokeOnThread(
                () =>
     {
         if (value > 0)
         {
             control.SplitterDistance = value;
         }
         return control;
     }));
 }
        public static GroupBox add_SplitContainer_1x1(this Control control, string title_1, Control childControl_2, bool verticalSplit, int spliterDistance)
        {
            SplitContainer splitControl_1 = control.add_SplitContainer(
                verticalSplit, //setOrientationToHorizontal
                true,          // setDockStyleoFill
                true);         // setBorderStyleTo3D

            return((GroupBox)splitControl_1.invokeOnThread(
                       () =>
            {
                splitControl_1.SplitterDistance = spliterDistance;
                GroupBox groupBox_1 = splitControl_1.Panel1.add_GroupBox(title_1);
                splitControl_1.Panel2.Controls.Add(childControl_2);
                return groupBox_1;
            }));
        }
 public static SplitContainer horizontalOrientation(this SplitContainer splitContainer)
 {
     splitContainer.invokeOnThread(() => splitContainer.Orientation = Orientation.Horizontal);
     return(splitContainer);
 }