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