/*public O2DockContent(Type controlToLoad, DockState controlDockState, string controlName)
         *  : this((Control) Activator.CreateInstance(controlToLoad), controlDockState, controlName)
         * {
         * }*/

        public O2DockContent(Type typeOfControlToLoad, O2DockState controlDockState, string controlName)
            : this(typeOfControlToLoad, (DockState)Enum.Parse(typeof(DockState), controlDockState.ToString()), controlName)
        {
        }
예제 #2
0
 /*public O2DockContent(Type controlToLoad, DockState controlDockState, string controlName)
     : this((Control) Activator.CreateInstance(controlToLoad), controlDockState, controlName)
 {
 }*/
 public O2DockContent(Type typeOfControlToLoad, O2DockState controlDockState, string controlName)
     : this(typeOfControlToLoad, (DockState)Enum.Parse(typeof(DockState), controlDockState.ToString()), controlName)
 {
 }
 public static DockState getDockStateFromO2DockState(O2DockState o2DockState)
 {
     return((DockState)Enum.Parse(typeof(DockState), o2DockState.ToString()));
 }
예제 #4
0
 public static DockState getDockStateFromO2DockState(O2DockState o2DockState)
 {
     return (DockState) Enum.Parse(typeof (DockState), o2DockState.ToString());
 }