Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new <see cref="DockWindow">DockWindow</see> instance.
        /// </summary>
        public DockWindow()
        {
            this.dockState         = this.DefaultDockState;
            this.previousDockState = this.dockState;
            this.desiredDockState  = this.dockState;
            this.autoHideSize      = Size.Empty;
            this.allowDockStates   = AllowedDockState.All;
            this.closeAction       = this.DefaultCloseAction;

            this.toolCaptionButtons  = ToolStripCaptionButtons.All;
            this.documentButtons     = DocumentStripButtons.All;
            this.defaultFloatingSize = FloatingWindow.DefaultFloatingSize;
        }
    private AllowedDockState ConvertToDockState(string value)
    {
        AllowedDockState state = AllowedDockState.All;

        switch (value)
        {
        case "All":
            state = AllowedDockState.All;
            break;

        case "DockedOnly":
            state = AllowedDockState.DockedOnly;
            break;

        case "FloatOnly":
            state = AllowedDockState.FloatOnly;
            break;
        }
        return(state);
    }