public Sidebar(Sidebars sidebars, SidebarAnchor anchor) { this.sidebars = sidebars; this.anchor = anchor; e = new EventWrapper(this); }
public Sidebar this[SidebarAnchor anchor] { get { switch (anchor) { case SidebarAnchor.Left: return(left); case SidebarAnchor.Right: return(right); default: throw new UnexpectedEnumValueException <SidebarAnchor>(anchor); } } }