Exemplo n.º 1
0
		protected override void AttachCore(PointSelector selector, Plotter plotter)
		{
			if (selector == null)
				throw new ArgumentNullException("selector");
			if (plotter == null)
				throw new ArgumentNullException("plotter");

			this.selector = selector;
			this.plotter = (Plotter2D)plotter;

			leftButtonClickWrapper = new MouseClickWrapper(plotter.CentralGrid, MouseButton.Left);
			leftButtonClickWrapper.Click += new MouseButtonEventHandler(OnLeftButtonClick);
		}
Exemplo n.º 2
0
        protected override void AttachCore(PointSelector selector, Plotter plotter)
        {
            if (selector == null)
            {
                throw new ArgumentNullException("selector");
            }
            if (plotter == null)
            {
                throw new ArgumentNullException("plotter");
            }

            this.selector = selector;
            this.plotter  = (Plotter2D)plotter;

            leftButtonClickWrapper        = new MouseClickWrapper(plotter.CentralGrid, MouseButton.Left);
            leftButtonClickWrapper.Click += OnLeftButtonClick;
        }