Пример #1
0
        public MainViewModel()
        {
            // 载入保存的设置
            App.Service.Token = LocalCache.Get<string>("Token");
            App.Service.BoardMode = LocalCache.Get<int>("BoardMode", 2);

            // 初始化
            CurrentBoard = new CurrentBoardViewModel();
            CurrentTopic = new CurrentTopicViewModel();
        }
Пример #2
0
        public MainViewModel()
        {
            // 载入保存的设置
            App.Service.Token     = LocalCache.Get <string>("Token");
            App.Service.BoardMode = LocalCache.Get <int>("BoardMode", 2);

            // 初始化
            CurrentBoard = new CurrentBoardViewModel();
            CurrentTopic = new CurrentTopicViewModel();
        }