private void xUnMapTestCaseGrid_PreviewDragItem(object sender, EventArgs e)
 {
     if (DragDrop2.DrgInfo.DataIsAssignableToType(typeof(ALMTestCaseManualMappingConfig), true) ||
         DragDrop2.DrgInfo.DataIsAssignableToType(typeof(ALMTSTest), true))
     {
         // OK to drop
         if (DragDrop2.DrgInfo.Data is ALMTestCaseManualMappingConfig)
         {
             if (DragDrop2.DrgInfo.DragSource == DragDrop2.DrgInfo.DragTarget)
             {
                 return;
             }
             DragDrop2.SetDragIcon(true, false);
         }
         else
         {
             DragDrop2.SetDragIcon(true);
         }
     }
     else
     {
         // Do Not Drop
         DragDrop2.SetDragIcon(false);
     }
 }
Ejemplo n.º 2
0
 private void grdVariables_PreviewDragItem(object sender, EventArgs e)
 {
     if (DragDrop2.DrgInfo.DataIsAssignableToType(typeof(VariableBase)))
     {
         // OK to drop
         DragDrop2.SetDragIcon(true);
     }
     else
     {
         // Do Not Drop
         DragDrop2.SetDragIcon(false);
     }
 }
Ejemplo n.º 3
0
 private void grdActivitiesGroups_PreviewDragItem(object sender, EventArgs e)
 {
     if (DragDrop2.DragInfo.DataIsAssignableToType(typeof(ActivitiesGroup)))
     {
         // OK to drop
         DragDrop2.SetDragIcon(true);
     }
     else
     {
         // Do Not Drop
         DragDrop2.SetDragIcon(false);
     }
 }
Ejemplo n.º 4
0
 // Drag Drop handlers
 private void listActions_PreviewDragItem(object sender, EventArgs e)
 {
     if (DragDrop2.DragInfo.DataIsAssignableToType(typeof(Act)) ||
         DragDrop2.DragInfo.DataIsAssignableToType(typeof(ApplicationPOMModel)) ||
         DragDrop2.DragInfo.DataIsAssignableToType(typeof(ElementInfo)) ||
         DragDrop2.DragInfo.DataIsAssignableToType(typeof(RepositoryFolder <ApplicationAPIModel>)) ||
         DragDrop2.DragInfo.DataIsAssignableToType(typeof(ApplicationAPIModel)))
     {
         // OK to drop
         DragDrop2.SetDragIcon(true);
     }
     else
     {
         // Do Not Drop
         DragDrop2.SetDragIcon(false);
     }
 }
 // Drag Drop handlers
 private void ListVars_PreviewDragItem(object sender, EventArgs e)
 {
     if (DragDrop2.DrgInfo.DataIsAssignableToType(typeof(VariableBase), true))
     {
         if (DragDrop2.DrgInfo.Data is ObservableList <RepositoryItemBase> )
         {
             DragDrop2.SetDragIcon(true, true);
         }
         else
         {
             DragDrop2.SetDragIcon(true);
         }
         // OK to drop
     }
     else
     {
         // Do Not Drop
         DragDrop2.SetDragIcon(false);
     }
 }
Ejemplo n.º 6
0
 private void ActivitiesListView_PreviewDragItem(object sender, EventArgs e)
 {
     if (DragDrop2.DrgInfo.DataIsAssignableToType(typeof(Activity), true) ||
         DragDrop2.DrgInfo.DataIsAssignableToType(typeof(ActivitiesGroup), true))
     {
         if (DragDrop2.DrgInfo.Data is ObservableList <RepositoryItemBase> )
         {
             DragDrop2.SetDragIcon(true, true);
         }
         else
         {
             // OK to drop
             DragDrop2.SetDragIcon(true);
         }
     }
     else
     {
         // Do Not Drop
         DragDrop2.SetDragIcon(false);
     }
 }