public void MakeIEEE(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForIEEE(Authors) + CommaSpace; rtb.SelectedText = "“" + Title + "”" + CommaSpace + In; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = Name + CommaSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; if (Volume != 0) { rtb.SelectedText = Vol + Volume + CommaSpace; } if (City != string.Empty) { rtb.SelectedText = City + CommaSpace; } rtb.SelectedText = Publisher + CommaSpace + Year; if (Pages != "") { rtb.SelectedText = CommaSpace; rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Point; } else { rtb.SelectedText = Point; } if (Link != "") { rtb.SelectedText = Space + Avaliable + Link + Point + Space + Access + Date.ToString("MMM. dd, yyyy."); } rtb.SelectedText = "\n\n"; }
public void MakeGOST(RichTextBox rtb) { string result = string.Empty; if (Authors.Length < 4) { result += AuthorsParser.MakeAuthorsForGOST(Authors); result += Space; result += Title; } else { result += Title; result += Space + Slash + Space; result += AuthorsParser.MakeAuthorsForGOST(Authors); } result += Space + DoubleSlash + Space; result += JournalName + PointSpace; result += Year + PointSpace; if (Volume != 0) { result += Vol + Volume + CommaSpace; } if (Number != 0) { result += Num + Number + PointSpace; } result += PPage + Pages + Point; if (Link != string.Empty) { result += Space + URL + Link + Space + Lparenthesis + Avaliable + Date.ToString("dd.MM.yyyy") + Rparenthesis + Point; } rtb.Text += result + "\n\n"; }
public void MakeIEEE(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForIEEE(Authors) + PointSpace; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; rtb.SelectedText = Title + CommaSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = JournalName + CommaSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; if (Volume != 0) { rtb.SelectedText = Vol + Volume + CommaSpace; } if (Number != 0) { rtb.SelectedText = Num + Number + CommaSpace; } rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Point; if (Link != "") { rtb.SelectedText = Space + Avaliable + Link + Point + Space + Access + Date.ToString("MMM. dd, yyyy."); } rtb.SelectedText = "\n\n"; }
public void MakeHarvard(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForHarvard(Authors); rtb.SelectedText = Space; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; rtb.SelectedText = Title + PointSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = IN + DoublePointSpace + Name + PointSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; //if (Volume > 0) // rtb.SelectedText += Volume + Point; if (City != string.Empty) { rtb.SelectedText = City + DoublePoint + Space; } rtb.SelectedText = Publisher + CommaSpace; rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Point; if (Link != "") { rtb.SelectedText = Space + Avaliable + Link + Space + Lpar + DateRus + Space + Date.ToString("dd MMM yyyy") + Rpar + Point; } rtb.SelectedText = "\n\n"; }
public void MakeAPA(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForAPA(Authors); rtb.SelectedText = Space; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; if (Title != string.Empty) { rtb.SelectedText = Title + PointSpace; } rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = Name + Space; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; rtb.SelectedText = Lparenthesis; if (Volume != 0) { rtb.SelectedText += Vol + Volume + CommaSpace; } rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Rparenthesis + PointSpace; if (City != string.Empty) { rtb.SelectedText = City + DoublePoint; } rtb.SelectedText = Publisher + Point; if (Link != "") { rtb.SelectedText = Space + Retrieved + Date.ToString("dd MMMM yyyy") + CommaSpace + From + Link; } rtb.SelectedText = "\n\n"; }
public void MakeGOST(RichTextBox rtb) { var result = string.Empty; if (Authors.Length < 4) { result += AuthorsParser.MakeAuthorsForGOST(Authors); result += Space; result += Title; } else { result += Title; result += Space + Slash + Space; result += AuthorsParser.MakeAuthorsForGOST(Authors); } result += Space + DoubleSlash + Space; result += ConferenceName + PointSpace; if (City != string.Empty) { result += City + DoublePointSpace; } result += Publisher + CommaSpace; result += Year + PointSpace; result += Int32.TryParse(Pages, out int a) ? Page : PPage; result += Pages + Point; rtb.Text += result + "\n\n"; }
public void MakeAPA(RichTextBox rtb) { if (Doi != string.Empty) { // like a journal rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForAPA(Authors); rtb.SelectedText = Space; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; rtb.SelectedText = Title + PointSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = ConferenceName + CommaSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; rtb.SelectedText = (Volume != 0 && Number != 0) ? Volume + Lparenthesis + Number + Rparenthesis + CommaSpace : (Volume != 0 && Number == 0) ? rtb.SelectedText = Volume + CommaSpace : rtb.SelectedText = Number + CommaSpace; rtb.SelectedText = Pages + Point; rtb.SelectedText = Space + DOI + Space + Doi; rtb.SelectedText = "\n\n"; } else { // like a book rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForAPA(Authors); rtb.SelectedText = Space; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; if (Title != string.Empty) { rtb.SelectedText = Title + PointSpace; } rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = ConferenceName + Space; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; rtb.SelectedText = Lparenthesis; if (Volume != 0) { rtb.SelectedText += Vol + Volume + CommaSpace; } rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Rparenthesis + PointSpace; if (City != string.Empty) { rtb.SelectedText = City + DoublePoint; } rtb.SelectedText = Publisher + Point; rtb.SelectedText = "\n\n"; } }
public Journal(LibItem libItem) { Int32.TryParse(libItem.Volume, out int volume); Int32.TryParse(libItem.Number, out int number); Int32.TryParse(libItem.Year, out int year); Authors = AuthorsParser.ParseAuthors(libItem.Authors, libItem.Sourсe); Title = libItem.Title; JournalName = libItem.JournalName; Year = year; Pages = libItem.Pages; Number = number; Volume = volume; Link = string.Empty; Date = DateTime.Parse(DateTime.Now.ToShortDateString()); }
public Book(LibItem libItem) { Int32.TryParse(libItem.Year, out int year); Int32.TryParse(libItem.Volume, out int volume); Authors = AuthorsParser.ParseAuthors(libItem.Authors, libItem.Sourсe); Title = libItem.Title; Name = libItem.JournalName; City = string.Empty; Publisher = libItem.Publisher; Year = year; Pages = libItem.Pages; Volume = volume; Link = string.Empty; Date = DateTime.Parse(DateTime.Now.ToShortDateString()); }
public Conference(LibItem libItem) { Int32.TryParse(libItem.Year, out int year); Int32.TryParse(libItem.Number, out int number); Int32.TryParse(libItem.Volume, out int volume); Authors = AuthorsParser.ParseAuthors(libItem.Authors, libItem.Sourсe); Title = libItem.Title; Publisher = libItem.Publisher; Pages = libItem.Pages; Year = year; City = libItem.Address; Number = number; Volume = volume; ConferenceName = libItem.JournalName; Doi = libItem.Doi; }
public void MakeIEEE(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForIEEE(Authors) + CommaSpace; rtb.SelectedText = "“" + Title + "”" + CommaSpace + In; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = ConferenceName + CommaSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; if (City != string.Empty) { rtb.SelectedText = City + CommaSpace; } rtb.SelectedText = Year + CommaSpace; rtb.SelectedText = Vol + Volume + CommaSpace; rtb.SelectedText = Num + Number + CommaSpace; rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Point + "\n\n"; }
public void MakeHarvard(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForHarvard(Authors); rtb.SelectedText = Space; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; rtb.SelectedText = Title + PointSpace; rtb.SelectedText = IN + DoublePointSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = ConferenceName + PointSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; if (City != string.Empty) { rtb.SelectedText = City + DoublePointSpace; } rtb.SelectedText = Publisher + CommaSpace; rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Point + "\n\n"; }
public void MakeAPA(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForAPA(Authors); rtb.SelectedText = Space; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; rtb.SelectedText = Title + PointSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = JournalName + CommaSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; rtb.SelectedText = (Volume != 0 && Number != 0) ? Volume + Lparenthesis + Number + Rparenthesis + CommaSpace : (Volume != 0 && Number == 0) ? rtb.SelectedText = Volume + CommaSpace : rtb.SelectedText = Number + CommaSpace; rtb.SelectedText = Pages + Point; if (Link != "") { rtb.SelectedText = Space + Retrieved + Date.ToString("dd MMMM yyyy") + CommaSpace + From + Link; } rtb.SelectedText = "\n\n"; }
public void MakeGOST(RichTextBox rtb) { string result = string.Empty; if (Authors.Length < 4) { result += AuthorsParser.MakeAuthorsForGOST(Authors); result += Space; result += Title; } else { result += Title; result += Space + Slash + Space; result += AuthorsParser.MakeAuthorsForGOST(Authors); } result += Space + DoubleSlash + Space; result += Name + PointSpace; // TODO if (City != string.Empty) { result += City + DoublePointSpace; } result += Publisher + CommaSpace; result += Year + PointSpace; if (Volume != 0) { result += Space + Vol + Volume + Point; } result += PPage + Pages + Point; if (Link != "") { result += Space + URL + Link + Space + Lparenthesis + DateRus + DoublePointSpace + Date.ToString("dd.MM.yyyy") + Rparenthesis + Point; } rtb.Text += result + "\n\n"; }
public void MakeHarvard(RichTextBox rtb) { rtb.Select(rtb.TextLength, 0); rtb.SelectedText = AuthorsParser.MakeAuthorsForHarvard(Authors); rtb.SelectedText = Space; rtb.SelectedText = Lparenthesis + Year + Rparenthesis + PointSpace; rtb.SelectedText = Title + PointSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = f; rtb.SelectedText = JournalName + CommaSpace; rtb.Select(rtb.TextLength, 0); rtb.SelectionFont = SystemFonts.DefaultFont; rtb.SelectedText = (Volume != 0 && Number != 0) ? Volume + Lparenthesis + Number + Rparenthesis + CommaSpace : (Volume != 0 && Number == 0) ? rtb.SelectedText = Volume + CommaSpace : rtb.SelectedText = Number + CommaSpace; rtb.SelectedText = Int32.TryParse(Pages, out int a) ? Page : PPage; rtb.SelectedText = Pages + Point; if (Link != "") { rtb.SelectedText = Space + Avaliable + Link + Space + Lpar + DateRus + Date.ToString("dd MMM yyyy") + Rpar + Point; } rtb.SelectedText = "\n\n"; }