//public O2DockContent(Control controlToLoad, DockState controlDockState, string controlName) /*public O2DockContent(Control controlToLoad) : this(controlToLoad, DockState.Document) { } public O2DockContent(Control controlToLoad, DockState controlDockState) : this(controlToLoad, controlDockState, controlToLoad.Name) { }*/ /// <summary> /// _note this will not create the Control, it expects a type and the control creation should be done by the form host /// (this way we avoid the multi thread problems of this control being created on a diferent thread from the main hosting Form /// </summary> /// <param name="typeOfControlToLoad"></param> /// <param name="controlDockState"></param> /// <param name="controlName"></param> public O2DockContent(Type typeOfControlToLoad, DockState controlDockState, string controlName) { type = typeOfControlToLoad; dockContent = new GenericDockContent {Text = controlName}; dockState = controlDockState; name = controlName; }
/*public O2DockContent(Control controlToLoad) * : this(controlToLoad, DockState.Document) * { * } * * * public O2DockContent(Control controlToLoad, DockState controlDockState) * : this(controlToLoad, controlDockState, controlToLoad.Name) * { * }*/ /// <summary> /// _note this will not create the Control, it expects a type and the control creation should be done by the form host /// (this way we avoid the multi thread problems of this control being created on a diferent thread from the main hosting Form /// </summary> /// <param name="typeOfControlToLoad"></param> /// <param name="controlDockState"></param> /// <param name="controlName"></param> public O2DockContent(Type typeOfControlToLoad, DockState controlDockState, string controlName) //public O2DockContent(Control controlToLoad, DockState controlDockState, string controlName) { type = typeOfControlToLoad; dockContent = new GenericDockContent { Text = controlName }; dockState = controlDockState; name = controlName; }