示例#1
0
 public void NotifyDragExit(IDraggable obj, ScrumGestures.TouchPoint pt)
 {
     if (obj.GetType() == typeof(UserStoryControl))
     {
         UserStoryControl usc = obj as UserStoryControl;
         this.Invoke(() =>
         {
             //Gefahr gebannt
             usc.DeleteVisible = false;
         });
     }
 }
示例#2
0
 public void NotifyDragEnter(IDraggable obj, ScrumGestures.TouchPoint pt)
 {
     if (obj.GetType() == typeof(UserStoryControl))
     {
         UserStoryControl usc = obj as UserStoryControl;
         this.Invoke(() =>
         {
             //Zeigen: Wenn du jetzt das Element loslässt, wird es gelöscht
             usc.DeleteVisible = true;
         });
     }
 }
示例#3
0
 public void NotifyDragDrop(IDraggable obj, ScrumGestures.TouchPoint pt)
 {
     if (obj.GetType() == typeof(UserStoryControl))
     {
         UserStoryControl usc = obj as UserStoryControl;
         this.Invoke(() =>
         {
             // Element wurde doch losgelassen! Also löschen
             Surface.Database.RemoveItem(usc.Item);
             if (ItemRemoved != null)
             {
                 ItemRemoved(this, usc.Item);
             }
         });
     }
 }
示例#4
0
 public DragDropPublisher(IDraggable source)
 {
     TypeOfSource = source.GetType();
 }