public CommonSetting(ICommonSettingStore settingStore) { _settingStore = settingStore; TrySetStorageRoot(settingStore.StorageRoot); TrySetProxy(settingStore.ProxyAddress, settingStore.ProxyPort); SetConnectionString(settingStore.DbConnectionString); }
public CommonSettingVM(ICommonSettingStore settingStore, CommonSetting commonSetting, IViewModelService viewModelService) { _storageRoot = settingStore.StorageRoot; _proxyAddress = settingStore.ProxyAddress; _proxyPort = settingStore.ProxyPort; _dbConnectionString = settingStore.DbConnectionString; _commonSetting = commonSetting; _viewModelService = viewModelService; }