Пример #1
0
 public InstalledModItem GetInstalledModule(ModStoreItem repoModule)
 {
     foreach (var module in InstalledItems)
     {
         if (module.Id == repoModule.Id)
         {
             return(module);
         }
     }
     return(null);
 }
Пример #2
0
        public void DownloadItem(ModStoreItem item)
        {
            switch (item.Type)
            {
            case "Module":
                DownloadModule(item as Module);
                break;

            case "Game":
                DownloadGame(item as ModStoreGame);
                break;
            }
        }