public void AddCodexPage(int id, BioCodexPage codexPage = null) { if (CodexPages == null) { CodexPages = InitCollection <KeyValuePair <int, BioCodexPage> >(); } if (id < 0) { return; } var codexPagePair = new KeyValuePair <int, BioCodexPage>(id, codexPage ?? new BioCodexPage()); CodexPages.Add(codexPagePair); SelectedCodexPage = codexPagePair; }
public BioCodexPage(BioCodexPage other) : base(other) { Section = other.Section; }