Example #1
0
        ///<summary>
        /// Gets the System.Windows.Forms dock style equivalent to the provided Habanero dock style
        ///</summary>
        ///<param name="dockStyle">A Habanero dock style.</param>
        ///<returns>The equivalent System.Windows.Forms dock style.</returns>
        public static System.Windows.Forms.DockStyle GetDockStyle(Base.DockStyle dockStyle)
        {
            switch (dockStyle)
            {
            case Base.DockStyle.Bottom: return(System.Windows.Forms.DockStyle.Bottom);

            case Base.DockStyle.Top: return(System.Windows.Forms.DockStyle.Top);

            case Base.DockStyle.Left: return(System.Windows.Forms.DockStyle.Left);

            case Base.DockStyle.Right: return(System.Windows.Forms.DockStyle.Right);

            case Base.DockStyle.Fill: return(System.Windows.Forms.DockStyle.Fill);
            }
            return((System.Windows.Forms.DockStyle)dockStyle);
        }
Example #2
0
        ///<summary>
        /// Gets the Gizmox.WebGUI.Forms dock style equivalent to the provided Habanero dock style
        ///</summary>
        ///<param name="dockStyle">A Habanero dock style.</param>
        ///<returns>The equivalent Gizmox.WebGUI.Forms dock style.</returns>
        public static Gizmox.WebGUI.Forms.DockStyle GetDockStyle(Base.DockStyle dockStyle)
        {
            switch (dockStyle)
            {
            case Base.DockStyle.None: return(Gizmox.WebGUI.Forms.DockStyle.None);

            case Base.DockStyle.Bottom: return(Gizmox.WebGUI.Forms.DockStyle.Bottom);

            case Base.DockStyle.Top: return(Gizmox.WebGUI.Forms.DockStyle.Top);

            case Base.DockStyle.Left: return(Gizmox.WebGUI.Forms.DockStyle.Left);

            case Base.DockStyle.Right: return(Gizmox.WebGUI.Forms.DockStyle.Right);

            case Base.DockStyle.Fill: return(Gizmox.WebGUI.Forms.DockStyle.Fill);
            }
            return((Gizmox.WebGUI.Forms.DockStyle)dockStyle);
        }