Esempio n. 1
0
        public Theme(JToken json)
        {
            if (json == null)
            {
                throw new ArgumentNullException(nameof(json));
            }

            m_name    = (string)json[JsonNames.Name];
            m_entries = new ThemeEntryList(json[JsonNames.ThemeEntries]);
        }
Esempio n. 2
0
        protected Theme(Theme prototype)
        {
            if (prototype == null)
            {
                throw new ArgumentNullException(nameof(prototype));
            }

            m_name    = prototype.m_name;
            m_entries = prototype.m_entries.Clone();
        }
Esempio n. 3
0
 public Theme(string name)
 {
     m_name    = name ?? throw new ArgumentNullException(nameof(name));
     m_entries = new ThemeEntryList();
 }