private async Task GetDataSource() { await _view.Dispatcher.BeginInvoke(new Action(() => { //配置数据源 var settingLocalData = _localDataManager.GetSettingParameter(); settingLocalData.LiveParameterVGAs.ForEach(v => { LiveDisplaySource.Add(v.LiveDisplayWidth); }); settingLocalData.LiveParameterRates.ForEach(r => { LiveRateSource.Add(r.LiveBitRate); }); })); }
private void Init_Live_Record_Settings() { SelectedLiveDisplay = null; SelectedLiveRate = 0; SelectedRemoteDisplay = null; SelectedRemoteRate = 0; SelectedLocalResolution = null; SelectedLocalBitrate = 0; LiveDisplaySource.Clear(); LiveRateSource.Clear(); _settingParameter.LiveParameterVGAs.ForEach(v => { LiveDisplaySource.Add(v.LiveDisplayWidth); }); _settingParameter.LiveParameterRates.ForEach(r => { LiveRateSource.Add(r.LiveBitRate); }); SetDefaultLiveRecordSetting(); }