Beispiel #1
0
 private void lblTitle_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (var bookDetailDialog = new BookDetail(_book, _user, _db))
     {
         DialogResult dr = bookDetailDialog.ShowDialog();
         if (dr == DialogResult.OK)
         {
             AddUpdateItemCallback();
         }
     }
 }
Beispiel #2
0
        private void listView_DoubleClick(object sender, EventArgs e)
        {
            if (listView.SelectedIndices.Count != 1)
            {
                return;
            }

            var index  = listView.SelectedIndices[0];
            var bookId = _books[index].Id;

            var detailForm = new BookDetail(_client, bookId);

            if (detailForm.ShowDialog(this) == DialogResult.OK)
            {
                Reload();
            }
        }