public SettingContentViewModel(SettingContentView meetingConfigView) { _meetingConfigView = meetingConfigView; _sdkService = DependencyResolver.Current.GetService <ISdk>(); LoadSettingCommand = DelegateCommand.FromAsyncHandler(LoadSettingAsync); ConfigItemChangedCommand = DelegateCommand <ConfigChangedItem> .FromAsyncHandler(ConfigItemChangedAsync); SelectRecordPathCommand = new DelegateCommand(SelectRecordPath); LiveUrlChangedCommand = new DelegateCommand(LiveUrlChangedHander); InitializeBindingDataSource(); }
public SettingContentViewModel(SettingContentView meetingConfigView) { _view = meetingConfigView; _meetingSdkAgent = IoC.Get <IMeetingSdkAgent>(); _deviceNameAccessor = IoC.Get <IDeviceNameAccessor>(); _deviceConfigLoader = IoC.Get <IDeviceConfigLoader>(); _cameraDeviceList = new List <VideoDeviceModel>(); _docDeviceList = new List <VideoDeviceModel>(); CameraDeviceList = new ObservableCollection <string>(); DocDeviceList = new ObservableCollection <string>(); CameraColorSpaces = new ObservableCollection <VideoFormatModel>(); DocColorSpaces = new ObservableCollection <VideoFormatModel>(); VedioParameterVgaList = new ObservableCollection <string>(); DocParameterVgaList = new ObservableCollection <string>(); VedioParameterRatesList = new ObservableCollection <int>(); CheckCameraDeviceCommand = DelegateCommand.FromAsyncHandler(CheckCameraDeviceAsync); CheckDocDeviceCommand = DelegateCommand.FromAsyncHandler(CheckDocDeviceAsync); Aac = new ObservableCollection <int>(); SampleRate = new ObservableCollection <int>(); AudioSource = new ObservableCollection <string>(); DocAudioSource = new ObservableCollection <string>(); AudioOutPutDevice = new ObservableCollection <string>(); CheckPeopleSourceDeviceCommand = new DelegateCommand(CheckPeopleSourceDevice); CheckDocSourceDeviceCommand = new DelegateCommand(CheckDocSourceDevice); LiveDisplaySource = new ObservableCollection <string>(); LiveRateSource = new ObservableCollection <int>(); LoadSettingCommand = new DelegateCommand(LoadSettingAsync); UnloadSettingCommand = new DelegateCommand(UnloadSetting); //ConfigItemChangedCommand = DelegateCommand<ConfigChangedItem>.FromAsyncHandler(ConfigItemChangedAsync); SelectRecordPathCommand = new DelegateCommand(SelectRecordPath); LiveUrlChangedCommand = new DelegateCommand(LiveUrlChangedHander); //InitializeBindingDataSource(); }