private void deleteBTN_Click(object sender, System.Windows.RoutedEventArgs e) { int bookID = (int)gridControl.GetFocusedRowCellValue("ID"); object o = System.Windows.Forms.MessageBox.Show("Delete Book " + bookID + "?", "Info", System.Windows.Forms.MessageBoxButtons.YesNo, System.Windows.Forms.MessageBoxIcon.Question); if ("Yes" == o.ToString()) { DataBaseTools.DeleteBook(bookID); } }