private void OnMouseLeftDown(object sender, MouseButtonEventArgs e)
        {
            var view = sender as IShowMouseSelectionView;

            if (view == null)
            {
                return;
            }

            // just in case it wasn't cleaned up for some reasons
            CleanUpSelectionDraw();

            drawRectangle = new DrawRectangle(view);
            drawRectangle.Begin(e.GetPosition(null));
        }
 private void CleanUpSelectionDraw()
 {
     drawRectangle?.Dispose();
     drawRectangle = null;
 }