public void AddLayoutWindow(ILayoutWindow layoutWindow) { if (!_layoutWindows.Any(win => win.WindowName == layoutWindow.WindowName)) { _layoutWindows.Add(layoutWindow); } }
public bool LayoutChange(string windowName, LayoutRenderType layoutRenderType) { ILayoutWindow layoutWindow = LayoutWindows.FirstOrDefault(window => window.WindowName == windowName); if (layoutWindow != null) { return(layoutWindow.LayoutChange(layoutRenderType)); } return(false); }