Пример #1
0
        private void OnBringTo(Func <IEnumerable <DrawingTool>, int> getPositionfunc)
        {
            var overlappedTools = GetOverlappedTools(SelectedTool);

            if (overlappedTools.Count() > 0)
            {
                DrawingTools.Remove(SelectedTool);
                DrawingTools.Insert(getPositionfunc(overlappedTools), SelectedTool);
                Invalidate();
                IsDirty = true;
            }
        }