Esempio n. 1
0
 public void DeleteMainRow()
 {
     if (SelectedMainRow != null)
     {
         var res = MessageBox.Show("Are You To Delete SelectedRecords From Database ?", "Delete",
                                   MessageBoxButton.OKCancel);
         if (res == MessageBoxResult.OK)
         {
             WarehouseClient.DeleteTransferAsync((TblTransferHeader) new
                                                 TblTransferHeader().InjectFrom(SelectedMainRow),
                                                 MainRowList.IndexOf(SelectedMainRow));
         }
     }
 }