public MatchesForm(MatchingAuthorsData data) { InitializeComponent(); addNewBookForm = data.AddNewBookForm; inputtedAuthor = data.InputtedAuthor; authors = data.PossibleMatches; book = data.Book; }
private void DisplayPossibleMatchesForAuthor(IEnumerable <Author> possibleMatches, Author author) { MatchingAuthorsData data = new MatchingAuthorsData { AddNewBookForm = this, PossibleMatches = possibleMatches, Book = book, InputtedAuthor = author }; MatchesForm form = new MatchesForm(data); form.ShowDialog(); }