예제 #1
0
        private void CurrentEditor_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            if (MouseIsDown)
            {
                if (_preferredPlacements != null)
                {
                    List<NewAtomPlacement> newAtomPlacements = new List<NewAtomPlacement>();
                    FillExistingAtoms(_preferredPlacements, newAtomPlacements, CurrentEditor);
                    EditViewModel.DrawRing(newAtomPlacements, false);
                }
            }
            CurrentEditor.ReleaseMouseCapture();

            CurrentAdorner = null;
            Target = null;
            MouseIsDown = false;
            IsDrawing = false;
            CurrentStatus = DefaultStatusText;
        }