Exemplo n.º 1
0
 public int GetTabGridItemCount(MainWindowViewModel.Tabs tab)
 {
     if (tabGridItems == null)
     {
         tabGridItems = new Dictionary <MainWindowViewModel.Tabs, int>();
     }
     if (tabGridItems.ContainsKey(tab))
     {
         return(tabGridItems[tab]);
     }
     return(0);
 }
Exemplo n.º 2
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);
 }