public DocumentDummy() { IdDocument = 1; Topic = string.Empty; CreationDateTime = DateTime.Now; Folder = new FolderDummy(); Folder.Name = "Default Folder "; Description = "___ () " + IdDocument.ToString(); Type = myEnum.TypeOne; }
public string GetOneDocument() { if (IdDocuments.Count < 1) { return(String.Format("N/A")); //TODO arranjar uma excepção } else if (IdDocuments.Count == 1) { return(IdDocuments[0].ToString()); } else { IdDocument idDocument = (IdDocument)IdDocuments[0]; foreach (IdDocument item in IdDocuments) { if (item.IdDocumentType < idDocument.IdDocumentType) { idDocument = (IdDocument)item; } } return(idDocument.ToString()); } }
public override string ToString() { return(IdDocument.ToString() + " : " + Topic.ToString() + " : " + Description.ToString()); }