private void editAuthor() { var author = authorsListGrid.SelectedItem as Author; var dlg = new EditAuthorWindow(ref _db, author); dlg.ShowDialog(); if (dlg.isClosedWithSave) { if (authorSearchBox.Text.Length == 0) { showAuthorsList(); } else { filterAuthorList(authorSearchBox.Text); } authorsListGrid.SelectedItem = author; } }
private void editAuthor() { var author = authorsListGrid.SelectedItem as Author; var dlg = new EditAuthorWindow(ref _db, author); dlg.ShowDialog(); if (dlg.isClosedWithSave) { if (authorSearchBox.Text.Length == 0) showAuthorsList(); else filterAuthorList(authorSearchBox.Text); authorsListGrid.SelectedItem = author; } }