Ejemplo n.º 1
0
        void StartMove(Pt p)
        {
            _moving = true;
            StroqSel ss = Selected.Contents as StroqSel;

            if (ss != null && ss.AllStroqs.Count > 10)
            {
                _movingLock = _mrec.BatchEdit();
            }
            Selected.Contents.StartMove(p);
            inqCanvas.Stroqs.Remove(Selected.Contents.Outline);
        }
Ejemplo n.º 2
0
 void StartMove(Pt p)
 {
     _moving = true;
     StroqSel ss = Selected.Contents as StroqSel;
     if (ss != null && ss.AllStroqs.Count > 10) _movingLock = _mrec.BatchEdit();
     Selected.Contents.StartMove(p);
     inqCanvas.Stroqs.Remove(Selected.Contents.Outline);
 }
Ejemplo n.º 3
0
 void inqCanvas_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (_moving)
     {
         _moving = false;
         using (_mrec.BatchEditNoRecog(true))
         {
             Selected.Contents.MoveTo(e.GetPosition(inqCanvas));
         }
         Selected.Contents.EndMove();
         if (_movingLock != null)
         {
             _movingLock.Dispose(); // this will call Parse itself
             _movingLock = null;
         }
         else Selected.Contents.Reparse(_mrec); // make sure math is updated and do a full rerecog just in case; we have only been doing non-re-recognition parses for speed
         Deselect();
         Mouse.Capture(null);
         e.Handled = true;
         inqCanvas.InkEnabled = true;
     }
 }