private void ClearAll_Click(object sender, EventArgs e) { library.Readers.Clear(); library.Books.Clear(); library.BooksLeft.Clear(); AllBooks.Items.Clear(); AllReaders.Items.Clear(); ListOfBooks.Items.Clear(); ListOfReaders.Items.Clear(); ReaderBooks.Items.Clear(); Readers.Clear(); Author.Clear(); Title.Clear(); }
public void clearNewBookFields() { //Book Info Title.Clear(); Author.Clear(); Pages.Clear(); Genre.Clear(); Publisher.Clear(); Price.Clear(); //author info AuthorName.Clear(); AuthorEmail.Clear(); AuthorAddress.Clear(); AuthorPNum.Clear(); AuthorAccNum.Clear(); AuthorCut.Clear(); authorList.Items.Clear(); }
async Task ExecuteLoadAuthorsCommand() { IsBusy = true; try { Author.Clear(); var _authors = await AuthorDataStore.GetItemsAsync(true); foreach (var _author in _authors) { Author.Add(_author); } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }