public Achievement(DataRow Row) { this.Id = (int)Row["id"]; this.ParentId = (int)Row["parent_id"]; this.RankRequired = (int)Row["rank_required"]; this.PixelReward = (int)Row["pixel_reward"]; this.Badge = (string)Row["badge"]; this.Formula = (double)Row["formula"]; this.TideBadge = StringAdapter.GetBoolean(Row["tide_badge"].ToString()); this.ScorePerLevel = (int)Row["score_per_level"]; }
public NavigatorPublic(DataRow Row) { this.Id = (int)Row["id"]; this.ParentId = (int)Row["parent_id"]; this.Caption = (string)Row["caption"]; this.Description = (string)Row["description"]; this.Type = int.Parse(Row["type"].ToString()); this.ImageSrc = (string)Row["image_src"]; this.ImagePlace = StringAdapter.GetBoolean(Row["image_place"]); this.SearchTags = (string)Row["search_tags"]; this.RoomId = (int)Row["room_id"]; this.CCTs = (string)Row["ccts"]; this.Focus = StringAdapter.GetBoolean(Row["focus"]); this.OrderId = (int)Row["order_id"]; }