Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
 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;
     }
 }