public DbItemLog(DbItem _item) { UniqueID = _item.UniqueID; Time = DateTime.Now; FormerOwner = _item.Owner; NewOwner = 0; StaticID = _item.StaticID; Durability = _item.Durability; Color = _item.Color; Plus = _item.Plus; Bless = _item.Bless; Enchant = _item.Enchant; Gem1 = _item.Gem1; Gem2 = _item.Gem2; Effect = _item.Effect; }
public DbItemLog(DbItem _item) { try { UniqueID = _item.UniqueID; Time = DateTime.Now; FormerOwner = _item.Owner; NewOwner = 0; StaticID = _item.StaticID; Durability = _item.Durability; Color = _item.Color; Plus = _item.Plus; Bless = _item.Bless; Enchant = _item.Enchant; Gem1 = _item.Gem1; Gem2 = _item.Gem2; Effect = _item.Effect; } catch (NullReferenceException p) { Console.WriteLine(p); } }