Exemplo n.º 1
0
        private void OnResourceViewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            ResourceView view = (ResourceView)sender;

            if (this.resourceDragged != null)
                this.resourceDragged.IsDragging = false;

            this.isDraggingResource = false;
            this.resourceDragged = null;
        }
Exemplo n.º 2
0
        private void OnResourceViewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            ResourceView view = (ResourceView)sender;
            ResourceViewModel viewModel = (ResourceViewModel)view.DataContext;

            viewModel.ZIndex = (this.GetMaxResourceZIndex() + 1);

            this.isDraggingResource = true;
            this.resourceClickMousePosition = e.GetPosition(view);
            this.resourceDragged = view;
        }