private R2DV_PanelToolbox() {
			drawing 	= R2DV_Drawing.Instance;
			resources 	= R2DD_Resources.Instance;
			movement 	= R2DC_Movement.Instance;
			state 		= R2DD_State.Instance;
			utils 		= R2DC_Utils.Instance;
			measure 	= R2DC_Measure.Instance;
		}
        static void SnapToGuideDown(MenuCommand menuCommand)
        {
            R2DC_Movement movement = GetSnapTool(menuCommand);

            if (movement != null)
            {
                movement.SnapBot();
            }
        }
        static void AlignVerticalCenters(MenuCommand menuCommand)
        {
            R2DC_Movement movement = GetAlignTool(menuCommand);

            if (movement != null)
            {
                movement.AlignYMid();
            }
        }
        static void AlignTopEdges(MenuCommand menuCommand)
        {
            R2DC_Movement movement = GetAlignTool(menuCommand);

            if (movement != null)
            {
                movement.AlignTop();
            }
        }
        static void DistroRightEdges(MenuCommand menuCommand)
        {
            R2DC_Movement movement = GetDistroTool(menuCommand);

            if (movement != null)
            {
                movement.DistroRight();
            }
        }
        static void DistroHorizontalCenters(MenuCommand menuCommand)
        {
            R2DC_Movement movement = GetDistroTool(menuCommand);

            if (movement != null)
            {
                movement.DistroXMid();
            }
        }
 private R2DV_PanelToolbox()
 {
     drawing   = R2DV_Drawing.Instance;
     resources = R2DD_Resources.Instance;
     movement  = R2DC_Movement.Instance;
     state     = R2DD_State.Instance;
     utils     = R2DC_Utils.Instance;
     measure   = R2DC_Measure.Instance;
 }
        static R2DC_Movement GetSnapTool(MenuCommand menuCommand)
        {
            if (CommandHandled(menuCommand))
            {
                return(null);
            }

            R2DC_Movement movement = R2DC_Movement.Instance;

            R2DC_Selection.Instance.UpdateSelection();

            if (!movement.guideSnapEnabled)
            {
                return(null);
            }

            return(movement);
        }