public int IndexOf(CandyTab tab)
        {
            var tabs = Tabs as List <CandyTab>;

            return(tabs.IndexOf(tab));
        }
 public void AddTab(CandyTab tab)
 {
     (Tabs as List <CandyTab>).Add(tab);
     StateHasChanged();
 }