public NameListForm(BibliographyNameList nameLists) : this() { NameList = nameLists; grid.DataSource = nameLists.People; view.BestFitColumns(); }
private void AddAuthorFootnoteText(BibliographySource item, BibliographyNameList author) { if (author != null) { if (author.People != null) { foreach (var person in author.People) { var s = ""; if (!String.IsNullOrEmpty(person.First)) { s += $"{person.First.Substring(0, 1).ToUpper()}."; } if (!String.IsNullOrEmpty(person.Middle)) { s += $"{person.Middle.Substring(0, 1).ToUpper()}."; } if (item.SourceType == SourceTypeEnum.ArticleInAPeriodical || item.SourceType == SourceTypeEnum.JournalArticle) { if (person == author.People.Last()) { var ym = ""; if (!String.IsNullOrEmpty(item.Month)) { ym += item.Month; } if (!String.IsNullOrEmpty(item.Year)) { if (ym != "") { ym += "."; } ym += item.Year; } s += $" {person.Last} ({ym}), "; } else { s += $" {person.Last}, "; } } else { s += $" {person.Last}, "; } Document.ActiveWindow.Selection.TypeText(s); } } } }