Beispiel #1
0
        public ReleaseEvent(string description, DateTime?date, ContentLanguageSelection defaultNameLanguage)
            : this()
        {
            ParamIs.NotNull(() => names);

            Description = description;
            Date        = date;
            TranslatedName.DefaultLanguage = defaultNameLanguage;
            TranslatedName.Clear();
        }
Beispiel #2
0
        public ReleaseEvent(string description, DateTime?date, ReleaseEventSeries series, int seriesNumber, string seriesSuffix,
                            ContentLanguageSelection defaultNameLanguage, bool customName)
            : this()
        {
            ParamIs.NotNull(() => series);

            Description  = description;
            Date         = date;
            Series       = series;
            SeriesNumber = seriesNumber;
            SeriesSuffix = seriesSuffix;
            CustomName   = customName;
            TranslatedName.Clear();

            if (customName)
            {
                TranslatedName.DefaultLanguage = defaultNameLanguage;
            }
            else
            {
                TranslatedName.DefaultLanguage = Series.TranslatedName.DefaultLanguage;
            }
        }