示例#1
0
 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);
 }
示例#2
0
        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;
        }