public GGenreClass(GDataSet.GGenreRow genreRow) : this(genreRow.GenreKey, genreRow.GenreName, genreRow.RootDirectory, genreRow.ImageDirectory, Color.FromArgb(genreRow.GenreColorRed, genreRow.GenreColorGreen, genreRow.GenreColorBlue)) { }
public GPackageClass(GDataSet.GPackageRow row, GGenreClass parent) : this() { this.packageKey = row.PackageKey; this.genreKey = row.IsGenreKeyNull() ? (int?)null : row.GenreKey; this.packageTitle = row.IsPackageTitleNull() ? null : row.PackageTitle; this.packageCatch = row.IsPackageCatchNull() ? null : row.PackageCatch; this.packageText = row.IsPackageTextNull() ? null : row.PackageText; this.created = row.Created; this.lastModified = row.LastModified; this.parent = parent; }
public GContentClass(GDataSet.GContentRow row, GPackageClass parentPackage, GGenreClass grandparentGenre) : this() { this.contentKey = row.ContentKey; this.packageKey = row.IsPackageKeyNull() ? (int?)null : row.PackageKey; this.genreKey = row.IsGenreKeyNull() ? (int?)null : row.GenreKey; this.title = row.IsTitleNull() ? null : row.Title; this.seriesNumber = row.IsSeriesNumberNull() ? null : row.SeriesNumber; this.subtitle = row.IsSubtitleNull() ? null : row.Subtitle; this.summaryHtml = row.IsSummaryHtmlNull() ? null : row.SummaryHtml; this.durationValue = row.IsDurationValueNull() ? (TimeSpan?)null : row.DurationValue; this.deadlineText = row.IsDeadlineTextNull() ? null : row.DeadlineText; this.created = row.Created; this.lastModified = row.LastModified; this.parentPackage = parentPackage; this.grandparentGenre = grandparentGenre; }
private GGenreClass GetCachedGenre(GDataSet.GContentRow crow) { if (crow.IsGenreKeyNull()) return null; else return this.GetCachedGenre(crow.GenreKey); }
private GGenreClass GetCachedGenre(GDataSet.GPackageRow prow) { if (prow.IsGenreKeyNull()) return null; else return this.GetCachedGenre(prow.GenreKey); }
private GPackageClass FindPackage(GDataSet.GContentRow crow) { if (crow.IsPackageKeyNull()) return null; else return this.FindPackage(crow.PackageKey); }
private GPackageClass() { GDataSet ds = new GDataSet(); }