public int GetTabGridItemCount(MainWindowViewModel.Tabs tab) { if (tabGridItems == null) { tabGridItems = new Dictionary <MainWindowViewModel.Tabs, int>(); } if (tabGridItems.ContainsKey(tab)) { return(tabGridItems[tab]); } return(0); }
public void SetTabGridItem(int items, MainWindowViewModel.Tabs tab) { if (tabGridItems == null) { tabGridItems = new Dictionary <MainWindowViewModel.Tabs, int>(); } if (!tabGridItems.ContainsKey(tab)) { tabGridItems.Add(tab, items); } else { tabGridItems[tab] = items; } TabGridItemsChanged?.Invoke(this, EventArgs.Empty); }