BoxDiagrams.DiagramGestureAnalyzer.MouseClickStarted C# (CSharp) Метод

MouseClickStarted() защищенный Метод

protected MouseClickStarted ( MouseEventArgs e ) : Util.WinForms.DragState
e MouseEventArgs
Результат Util.WinForms.DragState
		protected override Util.WinForms.DragState MouseClickStarted(MouseEventArgs e)
		{
			var htresult = Control.HitTest((PointT)e.Location.AsLoyc());
			if (htresult != null && htresult.AllowsDrag
				&& !Control.SelectedShapes.Contains(htresult.Shape)
				&& (System.Windows.Forms.Control.ModifierKeys & Keys.Control) == 0
				&& htresult.Shape is Shape)
				Control.ClickSelect(htresult.Shape as Shape);
			return new DragState(this, e)
			{
				ClickedShape = htresult,
			};
		}