public void btnDuzenlee()
        {
            editDoc edit = new editDoc();
            Details doc  = listdoc.SelectedItem as Details;

            edit.selected    = doc;
            edit.DigitalCopy = doc.DigitalCopy;
            edit.Show();
            anapencere.IsEnabled = false;
            edit.Closed         += doc_Closed;
        }
 private void btnBorrowEdit_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (listdoc.SelectedIndex == -1)
     {
         MessageBox.Show("Select a Document for Modify", "Modify", MessageBoxButton.OK, MessageBoxImage.Warning);
         return;
     }
     else
     {
         Details doc  = listdoc.SelectedItem as Details;
         editDoc edit = new editDoc();
         edit.selected       = doc;
         frmBorrow.IsEnabled = false;
         edit.Show();
         edit.Closed += doc_Closed;
     }
 }