Ejemplo n.º 1
0
        public Sidebar(Sidebars sidebars, SidebarAnchor anchor)
        {
            this.sidebars = sidebars;
            this.anchor   = anchor;

            e = new EventWrapper(this);
        }
Ejemplo n.º 2
0
        public Sidebar this[SidebarAnchor anchor]
        {
            get
            {
                switch (anchor)
                {
                case SidebarAnchor.Left: return(left);

                case SidebarAnchor.Right: return(right);

                default: throw new UnexpectedEnumValueException <SidebarAnchor>(anchor);
                }
            }
        }