예제 #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;
            }
        }
예제 #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;
     }
 }