public FragmentStash(int tabNumber)
        {
            TabNumber = tabNumber;

            var items = ApplicationState.Stash[ApplicationState.CurrentLeague].GetItemsByTab(tabNumber);

            viewModel = new FragmentStashViewModel(items);

            DataContext = viewModel;

            InitializeComponent();
        }
示例#2
0
        public FragmentStashTab(int tabNumber) : base(tabNumber)
        {
            Refresh();

            viewModel = new FragmentStashViewModel(TabItemsToViewModels);

            DataContext = viewModel;

            InitializeComponent();

            SetPremiumTabBorderColour();

            Ready = true;
        }