private void UpdateSelected(object data)
        {
            UpdateSelectionData data2 = (UpdateSelectionData)data;

            if (SteamToolsBigBoxContext.IsSteamGame(data2.game) ?? false)
            {
                SetIsSteamGameSafely(true, data2.cts);

                UInt64?GameIDNumber = SteamToolsBigBoxContext.GetSteamGameID(data2.game);
                if (GameIDNumber.HasValue)
                {
                    if (data2.cts.IsCancellationRequested)
                    {
                        return;
                    }

                    bool?l_IsInstalled = SteamToolsBigBoxContext.IsInstalled(GameIDNumber.Value, data2.game);
                    if (l_IsInstalled.HasValue)
                    {
                        if (l_IsInstalled.Value)
                        {
                            SetIsInstalledSafely(true, data2.cts);
                        }
                        else
                        {
                            SetIsInstalledSafely(false, data2.cts);
                        }
                    }
                }
            }
            else
            {
                SetIsSteamGameSafely(false, data2.cts);
            }
        }
 public void OnEventRaised(string eventType)
 {
     switch (eventType)
     {
     case SystemEventTypes.BigBoxStartupCompleted:
     case SystemEventTypes.LaunchBoxStartupCompleted:
         SteamToolsBigBoxContext.Init();
         break;
     }
 }