Example #1
0
 public MatchesForm(MatchingAuthorsData data)
 {
     InitializeComponent();
     addNewBookForm = data.AddNewBookForm;
     inputtedAuthor = data.InputtedAuthor;
     authors        = data.PossibleMatches;
     book           = data.Book;
 }
Example #2
0
        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();
        }