Exemple #1
0
 public AppListService(DvDevice aDevice, IAppShell aAppShell)
 {
     iDevice = aDevice;
     iProvider = new AppListProvider(iDevice);
     iDevice.SetEnabled();
     iCallbackTracker = new SafeCallbackTracker();
     iHandler = iCallbackTracker.Create<AppStatusChangeEventArgs>(OnAppStatusChanged);
     iAppShell = aAppShell;
     iAppShell.AppStatusChanged += iHandler;
     OnAppStatusChanged(this, new AppStatusChangeEventArgs());
 }
Exemple #2
0
 public AppManager(
     string aResourceUri,
     IEnumerable<DvDevice> aDevices,
     Func<DvDevice, IAppManagerActionHandler, string, IAppManagerProvider> aProviderConstructor,
     IAppShell aAppShell,
     IDownloadManager aDownloadManager)
 {
     iDownloadManager = aDownloadManager;
     iDownloadManager.DownloadCountChanged += OnDownloadCountChanged;
     iAppShell = aAppShell;
     iProviders = aDevices.Select(aDevice=>aProviderConstructor(aDevice, this, aResourceUri)).ToList();
     iAppShell.AppStatusChanged += OnAppStatusChanged;
     RefreshApps();
 }
Exemple #3
0
 public void Dispose()
 {
     AppShell.Dispose();
     AppShell = null;
 }
 public AppManagerConsoleCommands(IAppShell aAppAppShell)
 {
     iAppAppShell = aAppAppShell;
 }