public ConfigurePageViewModel(IUnityContainer container, IMountUserRepository mountUserRepository) : base(container) { _localConfigInfo = Container.Resolve <ILocalConfigInfo>(); _mountUserRepository = mountUserRepository; OpenFolderBrowserCommand = new Command(OpenFolderBrowserCommandExecute, () => _localDiskUser != null); }
public AppearanceOptionAreaViewModel(IUnityContainer container, ILocalConfigInfo localConfigInfo) : base(container) { _localConfigInfo = localConfigInfo; var temp = AppearanceManager.Current.AccentColor; SelectedTheme = Themes.FirstOrDefault(item => item.DisplayName == _localConfigInfo.Theme); SelectedPalette = temp; }
public OptionPageViewModel(IUnityContainer container, IMountUserRepository mountUserRepository, ILocalConfigInfo localConfigInfo) : base(container) { _mountUserRepository = mountUserRepository; _localConfigInfo = localConfigInfo; SignOutCommand = new Command(SignOutCommandExecute); //BindBaiduAccountCommand = new Command(BindBaiduAccountCommandExecute); OpenFolderBrowserCommand = new Command(OpenFolderBrowserCommandExecute, () => _mountUser != null); }
public DownloadOptionAreaViewModel(IUnityContainer container, IMountUserRepository mountUserRepository, ILocalConfigInfo localConfigInfo) : base(container) { _mountUserRepository = mountUserRepository; _localConfigInfo = localConfigInfo; OpenFolderBrowserCommand = new Command(OpenFolderBrowserCommandExecute, () => _mountUser != null); }