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); }
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); }
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; } }