Exemplo 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);
            }
        }
Exemplo n.º 2
0
        public Quote AddGeneralQuote()
        {
            Quote q = new Quote(window, this);

            GeneralQuotes.Add(q);
            return(q);
        }
Exemplo n.º 3
0
 public void ClearDefinitions()
 {
     SingleDefinition = "";
     EndNote          = "";
     GeneralQuotes.Clear();
     Definitions.Clear();
 }
Exemplo n.º 4
0
 public void RemoveGeneralQuoteAt(int index)
 {
     GeneralQuotes.RemoveAt(index);
 }