首次提交:本地项目同步到Gitea

This commit is contained in:
zhusenlin
2026-01-24 08:45:54 +08:00
commit 4a6b23db69
256 changed files with 25311 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using Io.Github.Kerwinxu.LibShapes.Core.Shape;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Io.Github.Kerwinxu.LibShapes.Core.State.ChangeStrategy
{
/// <summary>
/// 移动
/// </summary>
public class MoveMode : IChangeStrategy
{
public void action(ShapeEle shape, PointF start_pointF, PointF end_pointF)
{
// 这个是更改xy的
RectangleF rect = new RectangleF() {
X = end_pointF.X-start_pointF.X,
Y = end_pointF.Y - start_pointF.Y
};
shape.Change(rect);
//throw new NotImplementedException();
}
public Cursor changeCursor()
{
return Cursors.Hand;
throw new NotImplementedException();
}
public bool isRight(PointF[] pointFs, PointF start_pointF)
{
return true;// 一般是最后一项。
throw new NotImplementedException();
}
}
}