private void plateControl_LocationMouseButtonUp(PlateControl2DSilverlight.Enumerations.MouseButton mouseButton, PlateControl2DSilverlight.Enumerations.LocationType locationType, int iData) { if (mouseButton == PlateControl2DSilverlight.Enumerations.MouseButton.Left) { if (locationType == PlateControl2DSilverlight.Enumerations.LocationType.Position) LocationMouseUp(iData); else LocationMouseUp(null); } }
private void plateControl2D_LocationMouseOver(PlateControl2DSilverlight.Enumerations.LocationType locationType, int iData) { if (locationType == PlateControl2DSilverlight.Enumerations.LocationType.Position) LocationMouseOver(iData); else { // Deal with the special case when the user move the mouse outside the area while dragging // e.g. Left click on hold mouse down on position b3 move mouse up (whilst holding down) // Release mouse outside area // Move mouse back into area - (this mouse behaves as if the mouse is still down) LocationMouseOver(null); } }