Esempio 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());
        }
Esempio n. 2
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());
        }
Esempio n. 3
0
 public bool Match(Dossier dossier)
 {
     Console.WriteLine(dossier.Caption);
     return dossier.Caption.StartsWith(_Caption);
 }
Esempio n. 4
0
 public bool Match(Dossier dossier)
 {
     Console.WriteLine(dossier.Caption);
     return(dossier.Caption.StartsWith(_Caption));
 }