示例#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;
     }
 }