Inheritance: Livet.ViewModel
        public MainWindowViewModel()
        {
            StatusBar = new StatusBarViewModel();
            StatusBar.TimerStart();

            SignIn = new SignInViewModel();

            TabItems = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher) {

                (SelectedTab = new StartViewModel())
            };

            AccessLog = new AccessLogViewModel();
        }
Esempio n. 2
0
        public MainWindowViewModel()
        {
            ThemeSelector = new ThemeSelectorService();
            ThemeSelector.ChangeTheme((ThemeColors)Enum.Parse(typeof(ThemeColors), Settings.Instance.ThemeColor));

            //ステータスバーを初期化してタイマーをスタートさせる
            StatusBar = new StatusBarViewModel();
            StatusBar.TimerStart();

            MainContent = new MainContentViewModel(this);


            MainContent.AddSystemTab(Start = new StartViewModel());
            MainContent.SelectedTab        = Start;
            //
            SignIn = new SignInViewModel();
            Status = "サインイン中";
        }
Esempio n. 3
0
        public MainWindowViewModel()
        {
            StatusBar = new StatusBarViewModel();
            StatusBar.TimerStart();

            SignIn = new SignInViewModel();

            TabItems = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher) {

                (SelectedTab = new StartViewModel())
            };

            VideoTabs = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher);
            UserTabs = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher);
            MylistTabs = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher);
            CommunityTabs = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher);
            LiveTabs = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher);
            PlayListTabs = new DispatcherCollection<TabItemViewModel>(DispatcherHelper.UIDispatcher);

            AccessLog = new AccessLogViewModel();

            Update = new UpdateViewModel(CurrentVersion);
        }
        public MainWindowViewModel()
        {
            StatusBar = new StatusBarViewModel();
            StatusBar.TimerStart();

            SignIn = new SignInViewModel();

            TabItems = new DispatcherCollection <TabItemViewModel>(DispatcherHelper.UIDispatcher)
            {
                (SelectedTab = new StartViewModel())
            };

            VideoTabs     = new DispatcherCollection <TabItemViewModel>(DispatcherHelper.UIDispatcher);
            UserTabs      = new DispatcherCollection <TabItemViewModel>(DispatcherHelper.UIDispatcher);
            MylistTabs    = new DispatcherCollection <TabItemViewModel>(DispatcherHelper.UIDispatcher);
            CommunityTabs = new DispatcherCollection <TabItemViewModel>(DispatcherHelper.UIDispatcher);
            LiveTabs      = new DispatcherCollection <TabItemViewModel>(DispatcherHelper.UIDispatcher);
            PlayListTabs  = new DispatcherCollection <TabItemViewModel>(DispatcherHelper.UIDispatcher);


            AccessLog = new AccessLogViewModel();

            Update = new UpdateViewModel(CurrentVersion);
        }