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; }); } }
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; }); } }
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); } }); } }
public DragDropPublisher(IDraggable source) { TypeOfSource = source.GetType(); }