/// <summary> /// Book not series format title and replace original title with new /// title. /// </summary> private void NotSeriesFormatTitleOnly() { var sb = new StringBuilder(); sb.Append(BookDataProperties.BookTitleName); sb.Append("*"); txtBookInfo.Text = BookDataProperties.BookTitleName; var coll = new global::BookList.Collections.BookDataCollection(); coll.RemoveItemAt(BookDataProperties.NumberOfItems); coll.AddItem(sb.ToString()); coll.SortCollection(); txtTitle.Text = string.Empty; }
/// <summary> /// Are the series format book information. /// <see cref="DataFormats.Format"/> the series name of the book by /// surrounding it with parentheses. /// </summary> private void IsSeriesFormatBookInformation() { var sb = new StringBuilder(); sb.Append(BookDataProperties.BookTitleName); sb.Append(" "); sb.Append("("); sb.Append(BookDataProperties.NameOfBookSeries); sb.Append(")"); sb.Append(" "); sb.Append(BookDataProperties.BookSeriesVolumeNumber); txtBookInfo.Text = sb.ToString(); var coll = new global::BookList.Collections.BookDataCollection(); coll.RemoveItemAt(BookDataProperties.NumberOfItems); coll.AddItem(sb.ToString()); BookDataProperties.NameOfBookSeries = string.Empty; BookDataProperties.BookTitleName = string.Empty; }