Пример #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);
		}
Пример #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;
        }