private async void AddNewBook_Click(object sender, RoutedEventArgs e) { int bookCopies = 0; if (IsNewBookParametwersOk(ref bookCopies)) { if (IsNamingConventionOk()) { if (MainPage.ClassManager.IsBookUnique(GetNewBookData(bookCopies))) { await InfoMessage.BookSuccessfullyAddedAsync(); } else { await InfoMessage.BookAlreadyInTheCategoryAsync(); } ResetTextBoxAndComboBox(); } else { await InfoMessage.NamingErrorAsync(); } } else { await InfoMessage.EmptyFieldErrorAsync(); } }