예제 #1
0
 public void DeleteMainRow()
 {
     if (SelectedMainRows != null)
     {
         var res = MessageBox.Show("Are You To Delete SelectedRecords From Database ?", "Delete",
                                   MessageBoxButton.OKCancel);
         if (res == MessageBoxResult.OK)
         {
             foreach (var row in SelectedMainRows)
             {
                 Glclient.DeleteTblLedgerHeaderAttachmentAsync(
                     (TblLedgerHeaderAttachment) new TblLedgerHeaderAttachment().InjectFrom(row), MainRowList.IndexOf(row));
             }
         }
     }
 }