Inheritance: TabItemViewModel
Esempio n. 1
0
        public void Initialize()
        {
            Status   = "読込中";
            IsActive = true;

            var LiveInstance = new NicoNicoLive(LiveUrl);

            Content = LiveInstance.GetPage();
            Name    = Content.Title;

            if (Content.Type == LivePageType.Gate || Content.Type == LivePageType.TimeShiftGate)
            {
                ContentViewModel = new LiveGateViewModel(this, LiveInstance, Content);
            }
            else
            {
                ContentViewModel = new LiveWatchViewModel(this, LiveInstance, Content);
            }

            IsActive = false;
            Status   = "";
        }
Esempio n. 2
0
        public void Initialize()
        {
            Status = "読込中";
            IsActive = true;

            var LiveInstance = new NicoNicoLive(LiveUrl);

            Content = LiveInstance.GetPage();
            Name = Content.Title;

            if(Content.Type == LivePageType.Gate || Content.Type == LivePageType.TimeShiftGate) {

                ContentViewModel = new LiveGateViewModel(this, LiveInstance, Content);
            } else {

                ContentViewModel = new LiveWatchViewModel(this, LiveInstance, Content);
            }

            IsActive = false;
            Status = "";
        }