Example #1
0
 void GongSolutions.Wpf.DragDrop.IDropTarget.DragOver(GongSolutions.Wpf.DragDrop.DropInfo dropInfo)
 {
     //If dragging from Available -> Reported
     if ((dropInfo.Data is ClientLocation || dropInfo.Data is List <ClientLocation>) && dropInfo.TargetItem is InvoiceGroup)
     {
         if ((dropInfo.TargetItem as InvoiceGroup).ContractID == CurrentGroupItem.ContractID)
         {
             dropInfo.DropTargetAdorner = GongSolutions.Wpf.DragDrop.DropTargetAdorners.Highlight;
             dropInfo.Effects           = System.Windows.DragDropEffects.Move;
         }
     }
 }
Example #2
0
 void GongSolutions.Wpf.DragDrop.IDropTarget.Drop(GongSolutions.Wpf.DragDrop.DropInfo dropInfo)
 {
     if (dropInfo.Data is List <ClientLocation> )
     {
         foreach (ClientLocation loc in dropInfo.Data as List <ClientLocation> )
         {
             loc.DefaultInvoiceGrpID = (dropInfo.TargetItem as InvoiceGroup).InvoiceGrpId;
             ExtClientTarget.Update(loc);
         }
     }
     else if (dropInfo.Data is ClientLocation)
     {
         ClientLocation loc = dropInfo.Data as ClientLocation;
         loc.DefaultInvoiceGrpID = (dropInfo.TargetItem as InvoiceGroup).InvoiceGrpId;
         ExtClientTarget.Update(loc);
     }
     DetailVM.SetItemDetails();
 }
 void GongSolutions.Wpf.DragDrop.IDropTarget.Drop(GongSolutions.Wpf.DragDrop.DropInfo dropInfo)
 {
 }