public void QueueFile(IExternalComponent component) { filesToDownload.Add(new QueueItem { DownloadInfo = component.DownloadInfo, FileCallback = component.Install }); }
public ComponentViewModel(IExternalComponent externalComponent, ISecurityService securityService) { _externalComponent = externalComponent; _securityService = securityService; _name = Property.New(this, p => p.Name, OnPropertyChanged); Name = externalComponent.Name; _currentVersion = Property.New(this, p => p.CurrentVersion, OnPropertyChanged); _versionProgress = Property.New(this, p => p.VersionProgress, OnPropertyChanged); _hasAvailableUpdate = Property.New(this, p => p.HasAvailableUpdate, OnPropertyChanged) .AlsoChanges(p => p.CanUpdate); _latestVersion = Property.New(this, p => p.LatestVersion, OnPropertyChanged); _updateProgress = Property.New(this, p => p.UpdateProgress, OnPropertyChanged); UpdateCommand = Command.For(this).DependsOn(p => p.CanUpdate).Asynchronously().Executes(UpdateAsync); _updateCompleted = Property.New(this, p => UpdateCompleted, OnPropertyChanged); }
public MefComponent2([Import("external2")] IExternalComponent component1) { m_Component1 = component1; }
public MefComponent1(IExternalComponent component1) { m_Component1 = component1; }
public MefComponent4(IExternalComponent component1, [Import("external2")] IExternalComponent component2) { Component1 = component1; Component2 = component2; }
public ExternalComponent4(IExternalComponent externalComponent, IMefComponent mefComponent) { ExternalComponent = externalComponent; MefComponent = mefComponent; }
public ExternalComponent3(IExternalComponent externalComponent) { ExternalComponent = externalComponent; }