Example #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _roomlist.RestoreRooms();
            roomListView.ItemsSource = _roomlist;

            var _config = Config.Instance;

            //显示更新说明。
            if (_config.Version != Ver.VER)
            {
                MessageBox.Show("BiliRoku已经更新到 " + Ver.VER + "\n\n更新说明:\n" + Ver.DESC);
                _config.Version = Ver.VER;
            }
            AppendLogln("Core", "INFO", $"BiliRoku启动成功,版本{Ver.VER}");
            AppendLogln("Core", "INFO", $"第三方版本,{Ver.Toxiad_VER}");
            if (_config.IsShowLogBox == true)
            {
                GridInfoBox.Width = new GridLength(300);
            }
            else
            {
                GridInfoBox.Width = new GridLength(0);
            }
            var checkUpdate = new CheckUpdate();

            checkUpdate.OnResult += CheckUpdate_OnResult;
            InfoLogger.OnInfo    += InfoLogger_OnInfo;
        }
Example #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _roomlist.RestoreRooms();
            roomListView.ItemsSource = _roomlist;

            var _config = Config.Instance;

            //显示更新说明。
            if (_config.Version != Ver.VER)
            {
                MessageBox.Show("BiliRoku已经更新到 " + Ver.VER + "\n\n更新说明:\n" + Ver.DESC);
                _config.Version = Ver.VER;
            }
            AppendLogln("Core", "INFO", "启动成功。");
            var checkUpdate = new CheckUpdate();

            checkUpdate.OnResult += CheckUpdate_OnResult;
            InfoLogger.OnInfo    += InfoLogger_OnInfo;
        }