Esempio n. 1
0
        // 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);
            }
        }
Esempio n. 2
0
 public void ClearDefinitions()
 {
     SingleDefinition = "";
     EndNote          = "";
     GeneralQuotes.Clear();
     Definitions.Clear();
 }