Ejemplo n.º 1
0
        public ITextBuilder <T> Text(string text)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(text), m_baseText.Text, Logger);

            m_baseText.Text = text;
            return(this);
        }
Ejemplo n.º 2
0
        public IntervalTextBuilder Text(string text)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(text), m_intervalText.Text, Logger);

            m_intervalText.Text = text;

            return(this);
        }
Ejemplo n.º 3
0
        public IntervalTextBuilder IntervalEnd(int intervalEnd)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(intervalEnd), m_intervalEndSet, Logger);

            m_intervalText.IntervalEnd = intervalEnd;
            m_intervalEndSet           = true;
            return(this);
        }
Ejemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name">Dictionary scope name. E.g. global or about</param>
        /// <returns>this</returns>
        /// <exception cref="BuilderException">Thrown if Name is already set.</exception>
        public DictionaryScopeBuilder Name(string name)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(name), m_dictionaryScope.Name, Logger);

            m_dictionaryScope.Name = name;

            return(this);
        }
Ejemplo n.º 5
0
        public ITextBuilder <T> Culture(Culture culture)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(culture), m_baseText.Culture, Logger);

            m_baseText.CultureId = culture.Id;
            m_baseText.Culture   = culture;
            return(this);
        }
Ejemplo n.º 6
0
        public ITextBuilder <T> DictionaryScope(DictionaryScope dictionaryScope)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(dictionaryScope), m_baseText.DictionaryScope, Logger);

            m_baseText.DictionaryScopeId = dictionaryScope.Id;
            m_baseText.DictionaryScope   = dictionaryScope;
            return(this);
        }
Ejemplo n.º 7
0
        public ITextBuilder <T> ModificationUser(string modificationUser)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(modificationUser), m_baseText.ModificationUser, Logger);

            m_baseText.ModificationUser = modificationUser;

            return(this);
        }
Ejemplo n.º 8
0
        public ITextBuilder <T> Format(short format)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(format), m_baseText.Format, Logger);

            m_baseText.Format = format;

            return(this);
        }
Ejemplo n.º 9
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name">Static text name.</param>
        /// <returns>this</returns>
        /// <exception cref="BuilderException">Thrown if Name is already set.</exception>
        public ITextBuilder <T> Name(string name)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(name), m_baseText.Name, Logger);

            m_baseText.Name = name;

            return(this);
        }
Ejemplo n.º 10
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="name">Culture name. E.g. en-US or cs</param>
        /// <returns>this</returns>
        /// <exception cref="BuilderException">Thrown if Name is already set.</exception>
        public CultureBuilder Name(string name)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(name), m_culture.Name, Logger);

            CheckCultureValidity(name);
            m_culture.Name = name;

            return(this);
        }
Ejemplo n.º 11
0
        public IntervalTextBuilder IntervalStart(int intervalStart)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(intervalStart), m_intervalStartSet, Logger);

            m_intervalText.IntervalStart = intervalStart;

            m_intervalStartSet = true;
            return(this);
        }
Ejemplo n.º 12
0
        public IntervalTextBuilder PluralizedStaticText(PluralizedStaticText pluralizedStaticText)
        {
            BuilderGuard.ArgumentAlreadySet(nameof(pluralizedStaticText), m_intervalText.PluralizedStaticText, Logger);

            NullCheck.Check(pluralizedStaticText);

            m_intervalText.PluralizedStaticText   = pluralizedStaticText;
            m_intervalText.PluralizedStaticTextId = pluralizedStaticText.Id;

            return(this);
        }