Наследование: TabItemViewModel
Пример #1
0
        internal GameInformationViewModel(MainWindowViewModel rpOwner)
        {
            Owner = rpOwner;

            Fleets = new FleetsViewModel(this);

            TabItems = new ObservableCollection <object>()
            {
                (Overview = new OverviewViewModel()),
                (Sortie = new SortieViewModel()),
                (Quests = new QuestsViewModel(this)),
                (Tools = new ToolsViewModel(this)),
            };

            SelectedItem = TabItems.FirstOrDefault();

            IsBrowserAvailable = !BrowserService.Instance.NoInstalledLayoutEngines;
            PropertyChangedEventListener.FromSource(BrowserService.Instance).Add(nameof(BrowserService.Instance.NoInstalledLayoutEngines), delegate
            {
                IsBrowserAvailable = !BrowserService.Instance.NoInstalledLayoutEngines;
                OnPropertyChanged(nameof(IsBrowserAvailable));
            });
        }
        internal GameInformationViewModel(MainWindowViewModel rpOwner)
        {
            Owner = rpOwner;

            Fleets = new FleetsViewModel(this);

            TabItems = new ObservableCollection<object>()
            {
                (Overview = new OverviewViewModel()),
                (Sortie = new SortieViewModel()),
                (Quests = new QuestsViewModel(this)),
                (Tools = new ToolsViewModel(this)),
            };

            SelectedItem = TabItems.FirstOrDefault();

            IsBrowserAvailable = !BrowserService.Instance.NoInstalledLayoutEngines;
            PropertyChangedEventListener.FromSource(BrowserService.Instance).Add(nameof(BrowserService.Instance.NoInstalledLayoutEngines), delegate
            {
                IsBrowserAvailable = !BrowserService.Instance.NoInstalledLayoutEngines;
                OnPropertyChanged(nameof(IsBrowserAvailable));
            });
        }