Пример #1
0
        public void ActivateTransformTool(object canvasClick, ButtonPressEventArgs args)
        {
            double mouseX = args.Event.X;
            double mouseY = args.Event.Y;

            _transformTool.Activate(mouseX, mouseY);
            _transformTool.DoWork(mouseX, mouseY, _listView.Selected, _model);
        }
Пример #2
0
        //requires: an object and ButtonPressEventargs
        //effects: gets (x,y) coordinate and activate tranformTool
        //         and its DoWork method
        void OnButtonPressCallback(object obj, ButtonPressEventArgs args)
        {
            double x = args.Event.X;
            double y = args.Event.Y;

            if (_listView.Selected == -1)
            {
                return;
            }
            _transform.Activate(x, y);
            _transform.DoWork(x, y, _listView.Selected, _model);
        }
Пример #3
0
 void ButtonPressHandler(object obj, ButtonPressEventArgs args)
 {
     Console.WriteLine("mouse pressed");
     _tt.Activate(args.Event.X, args.Event.Y);
     _tt.DoWork(args.Event.X, args.Event.Y, _list.Selected, _cm);
 }