Esempio n. 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());
 }
Esempio n. 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();
 }
Esempio n. 3
0
 public void Dispose()
 {
     AppShell.Dispose();
     AppShell = null;
 }
Esempio n. 4
0
 public AppManagerConsoleCommands(IAppShell aAppAppShell)
 {
     iAppAppShell = aAppAppShell;
 }