예제 #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _downloader = new Downloader(this);
            _config     = new Config();

            //显示更新说明。
            if (_config.Version != Ver.VER)
            {
                MessageBox.Show("BiliRoku已经更新到 " + Ver.VER + "\n\n更新说明:\n" + Ver.DESC);
                _config.Version = Ver.VER;
            }
            //读取配置并填入文本框
            if (_config.RoomId != null)
            {
                roomIdBox.Text = _config.RoomId;
            }
            if (_config.SaveLocation != null)
            {
                savepathBox.Text = _config.SaveLocation;
            }
            saveCommentCheckBox.IsChecked   = _config.IsDownloadComment;
            waitForStreamCheckBox.IsChecked = _config.IsWaitStreaming;
            AppendLogln("INFO", "启动成功。");
            var checkUpdate = new CheckUpdate();

            checkUpdate.OnInfo   += CheckUpdate_OnInfo;
            checkUpdate.OnResult += CheckUpdate_OnResult;
        }
예제 #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", $"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;
        }
예제 #3
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;
        }