Пример #1
0
 /// <summary>
 /// Tags the given mod.
 /// </summary>
 /// <param name="p_modMod">The mod to tag.</param>
 protected void TagMod(IMod p_modMod)
 {
     if (!ModManager.ModRepository.IsOffline)
     {
         ModTaggerVM mtgTagger = new ModTaggerVM(ModManager.GetModTagger(), p_modMod, Settings, CurrentTheme);
         TaggingMod(this, new EventArgs <ModTaggerVM>(mtgTagger));
     }
     else
     {
         ModManager.Login();
         ModTaggerVM mtgTagger = new ModTaggerVM(ModManager.GetModTagger(), p_modMod, Settings, CurrentTheme);
         ModManager.AsyncTagMod(this, mtgTagger, TaggingMod);
     }
 }