Ejemplo n.º 1
0
        public void RegisterStateMonitor(IGameStateMonitor monitor)
        {
            if (stateMonitor != null)
            {
                stateMonitor.Dispose();
            }

            stateMonitor = monitor;
            stateMonitor.GameInstalled   += StateMonitor_GameInstalled;
            stateMonitor.GameUninstalled += StateMonitor_GameUninstalled;
            stateMonitor.StartMonitoring();
            IsSetupInProgress = true;
        }
Ejemplo n.º 2
0
        public void RegisterStateMonitor(IGameStateMonitor monitor, GameStateMonitorType type)
        {
            if (stateMonitor != null)
            {
                stateMonitor.Dispose();
            }

            stateMonitor = monitor;
            stateMonitor.GameInstalled   += StateMonitor_GameInstalled;
            stateMonitor.GameUninstalled += StateMonitor_GameUninstalled;
            if (type == GameStateMonitorType.Install)
            {
                stateMonitor.StartInstallMonitoring();
            }
            else
            {
                stateMonitor.StartUninstallMonitoring();
            }

            IsSetupInProgress = true;
        }