Esempio n. 1
0
 public void ReportPickItem(string name, string itemclass, int amount, int color1, int color2, int color3)
 {
     try
     {
         using (HeroesDataContext heroesDataContext = new HeroesDataContext())
         {
             if (itemclass == "gold")
             {
                 heroesDataContext.AddGuildStorageBriefLog(new int?(this.Parent.GuildSN), name, new byte?(1), new int?(0), new int?(amount));
             }
             else
             {
                 heroesDataContext.AddGuildStorageBriefLog(new int?(this.Parent.GuildSN), name, new byte?(2), new int?(0), new int?(1));
                 heroesDataContext.AddGuildStorageItemLog(new int?(this.Parent.GuildSN), name, new byte?(0), itemclass, new int?(amount), new int?(color1), new int?(color2), new int?(color3));
             }
         }
     }
     catch (Exception ex)
     {
         Log <GuildStorageManager> .Logger.Error(ex);
     }
     this.QueryStorageLog(false);
 }
Esempio n. 2
0
 public void ReportExtendSlot(string name, int amount)
 {
     try
     {
         using (HeroesDataContext heroesDataContext = new HeroesDataContext())
         {
             heroesDataContext.AddGuildStorageBriefLog(new int?(this.Parent.GuildSN), name, new byte?(3), new int?(1), new int?(0));
         }
     }
     catch (Exception ex)
     {
         Log <GuildStorageManager> .Logger.Error(ex);
     }
     this.QueryStorageLog(false);
 }