private void AddPaperClip_Click(object sender, RoutedEventArgs e) { PaperClip paperClip = new PaperClip(); paperClip.MouseMove += new MouseEventHandler(paperClip_MouseMove); paperClip.PreviewTouchMove += new EventHandler<TouchEventArgs>(paperClip_PreviewTouchMove); AddNewTool(paperClip); }
public Boolean isAlreadyClipped(PaperClip clip, Entry e) { foreach (PaperClip paperClip in this.paperClips) { if (paperClip != clip && paperClip.toOrganize.Contains(e) && (Canvas.GetZIndex(clip) < Canvas.GetZIndex(paperClip))) { return true; } } return false; }