private void InitPanel(PanelSetEnum panelSet) { if ((panelSet == PanelSetEnum.psLeft) || (panelSet == PanelSetEnum.psLeftRight)) LeftPanel = new SideBarPanel(PanelAlignEnum.paLeft); if ((panelSet == PanelSetEnum.psRight) || (panelSet == PanelSetEnum.psLeftRight)) RightPanel = new SideBarPanel(PanelAlignEnum.paRight); }
private void Init(PanelSetEnum panelSet) { if ((panelSet == PanelSetEnum.psLeft) || (panelSet == PanelSetEnum.psLeftRight)) LeftPanel = new SideBarPanel(PanelAlignEnum.paLeft); if ((panelSet == PanelSetEnum.psRight) || (panelSet == PanelSetEnum.psLeftRight)) RightPanel = new SideBarPanel(PanelAlignEnum.paRight); Disappearing += (s, e) => { ClosePanel(); }; }
private void Init(PanelSetEnum panelSet) { if ((panelSet == PanelSetEnum.psLeft) || (panelSet == PanelSetEnum.psLeftRight)) { LeftPanel = new SideBarPanel(PanelAlignEnum.paLeft); } if ((panelSet == PanelSetEnum.psRight) || (panelSet == PanelSetEnum.psLeftRight)) { RightPanel = new SideBarPanel(PanelAlignEnum.paRight); } Disappearing += (s, e) => { ClosePanel(); }; }