Beispiel #1
0
 public static PremiumItem LoadFromDatabase(DataRow row)
 {
     PremiumItem ppItem= new PremiumItem
     {
         UniqueID = GetDataTypes.GetInt(row["UniqueID"]),
         Slot = GetDataTypes.GetByte(row["PageID"]),
         ShopID = GetDataTypes.GetInt(row["ShopID"]),
         CharID = GetDataTypes.GetInt(row["CharID"]),
         PageID = GetDataTypes.GetByte(row["PageID"])
     };
     return ppItem;
 }
Beispiel #2
0
        public static PremiumItem LoadFromDatabase(DataRow row)
        {
            PremiumItem ppItem = new PremiumItem
            {
                UniqueID = GetDataTypes.GetInt(row["UniqueID"]),
                Slot     = GetDataTypes.GetByte(row["PageID"]),
                ShopID   = GetDataTypes.GetInt(row["ShopID"]),
                CharID   = GetDataTypes.GetInt(row["CharID"]),
                PageID   = GetDataTypes.GetByte(row["PageID"])
            };

            return(ppItem);
        }