// Does not replace existing
        public void AddCodexSection(int id, BioCodexSection codexSection = null)
        {
            if (CodexSections == null)
            {
                CodexSections = InitCollection <KeyValuePair <int, BioCodexSection> >();
            }

            if (CodexSections.Any(pair => pair.Key == id))
            {
                return;
            }

            var codexSectionPair = new KeyValuePair <int, BioCodexSection>(id, codexSection ?? new BioCodexSection());

            CodexSections.Add(codexSectionPair);

            SelectedCodexSection = codexSectionPair;
        }
 /// <summary>
 /// </summary>
 /// <param name="other"></param>
 public BioCodexSection(BioCodexSection other)
     : base(other)
 {
     IsPrimary = other.IsPrimary;
 }
Esempio n. 3
0
		/// <summary>
		/// </summary>
		/// <param name="other"></param>
		public BioCodexSection(BioCodexSection other)
			: base(other)
		{
			IsPrimary = other.IsPrimary;
		}