Exemplo n.º 1
0
        private void AddMasterDocument()
        {
            string objectName = "MasterDocument";
             		string creation = GetValue(objectName, "creation");
             		string caption = GetValue(objectName, "caption");
             		string masterCaption = GetValue(objectName, "masterCaption");
             		string content = GetValue(objectName, "content");

            System.IFormatProvider frmt = new System.Globalization.CultureInfo("fr-FR", true);
            DateTime dt = DateTime.ParseExact(creation, "dd/MM/yyyy HH:mm:ss", frmt);
            Dossier dossier = new Dossier(dt, masterCaption);
            Document document = new Document(dt, caption, content);
            dossier.AddDocument(document);

            db.Set(dossier);
            Console.WriteLine("Dossier ajouté : " + dossier.ToString());
        }
Exemplo n.º 2
0
 public void AddDocument(Document document)
 {
     documents.Add(document);
 }