Пример #1
0
        public GGenreClass(GDataSet.GGenreRow genreRow)
            : this(genreRow.GenreKey,
				genreRow.GenreName,
				genreRow.RootDirectory,
				genreRow.ImageDirectory,
				Color.FromArgb(genreRow.GenreColorRed, genreRow.GenreColorGreen, genreRow.GenreColorBlue))
        {
        }
Пример #2
0
        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;
        }
Пример #3
0
        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;
        }
Пример #4
0
 private GGenreClass GetCachedGenre(GDataSet.GContentRow crow)
 {
     if (crow.IsGenreKeyNull()) return null;
     else return this.GetCachedGenre(crow.GenreKey);
 }
Пример #5
0
 private GGenreClass GetCachedGenre(GDataSet.GPackageRow prow)
 {
     if (prow.IsGenreKeyNull()) return null;
     else return this.GetCachedGenre(prow.GenreKey);
 }
Пример #6
0
 private GPackageClass FindPackage(GDataSet.GContentRow crow)
 {
     if (crow.IsPackageKeyNull()) return null;
     else return this.FindPackage(crow.PackageKey);
 }
Пример #7
0
 private GPackageClass()
 {
     GDataSet ds = new GDataSet();
 }