public FragmentStash(int tabNumber) { TabNumber = tabNumber; var items = ApplicationState.Stash[ApplicationState.CurrentLeague].GetItemsByTab(tabNumber); viewModel = new FragmentStashViewModel(items); DataContext = viewModel; InitializeComponent(); }
public FragmentStashTab(int tabNumber) : base(tabNumber) { Refresh(); viewModel = new FragmentStashViewModel(TabItemsToViewModels); DataContext = viewModel; InitializeComponent(); SetPremiumTabBorderColour(); Ready = true; }