public void UpdateLayouts() { foreach (Pair <VirtualDesktop, HMONITOR> desktopMonitor in Windows.Keys) { if (!Layouts.ContainsKey(desktopMonitor)) { Layouts.Add(desktopMonitor, Layout.Tall); } } }
public int?GetLayoutId(string pageType) { return(Layouts.ContainsKey(pageType) ? Layouts[pageType] : null); }