// Used to copy data from a deserialized entry into the single entry used for editing public void TakeDataFrom(Entry e) { Style = e.Style; Preamble = e.Preamble; Headword = e.Headword; Headword2 = e.Headword2; Headword3 = e.Headword3; DefinitionBrace = e.DefinitionBrace; Postamble = e.Postamble; Grammar = e.Grammar; From = e.From; SingleDefinition = e.SingleDefinition; EndNote = e.EndNote; GeneralQuotes.Clear(); foreach (Quote q in e.GeneralQuotes) { q.SetState(window, this); GeneralQuotes.Add(q); } Definitions.Clear(); foreach (Definition d in e.Definitions) { d.SetState(window, this); Definitions.Add(d); } }
public Quote AddGeneralQuote() { Quote q = new Quote(window, this); GeneralQuotes.Add(q); return(q); }