diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/72ef0bef-cf1c-461e-a931-59f6ecff6dc3.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/5be5b462-1a57-402f-a15d-82b87f7c09fc.vsidx similarity index 64% rename from 源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/72ef0bef-cf1c-461e-a931-59f6ecff6dc3.vsidx rename to 源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/5be5b462-1a57-402f-a15d-82b87f7c09fc.vsidx index 1abe3cea..c7787de9 100644 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/72ef0bef-cf1c-461e-a931-59f6ecff6dc3.vsidx and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/5be5b462-1a57-402f-a15d-82b87f7c09fc.vsidx differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/f5aed7ca-3f3c-4c19-97fc-8b6061c97b1e.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/92ba690c-5f44-444d-bb81-4379c01f4547.vsidx similarity index 71% rename from 源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/f5aed7ca-3f3c-4c19-97fc-8b6061c97b1e.vsidx rename to 源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/92ba690c-5f44-444d-bb81-4379c01f4547.vsidx index 0ac1c224..b4b6bb61 100644 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/f5aed7ca-3f3c-4c19-97fc-8b6061c97b1e.vsidx and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/92ba690c-5f44-444d-bb81-4379c01f4547.vsidx differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/adeb802c-f0d5-43e8-acef-e26e444a8619.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/adeb802c-f0d5-43e8-acef-e26e444a8619.vsidx deleted file mode 100644 index a73117bf..00000000 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/adeb802c-f0d5-43e8-acef-e26e444a8619.vsidx and /dev/null differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/ff55e2bb-f95c-454b-a280-d152fbcc2561.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/b4eca872-6df6-4a95-b000-221909269f00.vsidx similarity index 74% rename from 源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/ff55e2bb-f95c-454b-a280-d152fbcc2561.vsidx rename to 源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/b4eca872-6df6-4a95-b000-221909269f00.vsidx index 5df45749..07a8d32a 100644 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/ff55e2bb-f95c-454b-a280-d152fbcc2561.vsidx and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/b4eca872-6df6-4a95-b000-221909269f00.vsidx differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/eff92f75-a0c7-41cc-ac66-1caf4ccfb5a5.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/eff92f75-a0c7-41cc-ac66-1caf4ccfb5a5.vsidx new file mode 100644 index 00000000..1a97c057 Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/eff92f75-a0c7-41cc-ac66-1caf4ccfb5a5.vsidx differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo index 64eba565..c9ffc468 100644 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/v17/.suo differ diff --git a/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs b/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs index 0d5664d1..fa9bc153 100644 --- a/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs +++ b/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs @@ -11,7 +11,7 @@ namespace Debug { static void Main(string[] args) { - } + } } diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Bind.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Bind.cs index bd712d77..f36e8af8 100644 --- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Bind.cs +++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Control/Bind.cs @@ -10,7 +10,7 @@ namespace StgSharp.Control { public class Bind { - public void SimpleBind(Point p, GeometryI g) + public void Simple(Point p, GeometryI g) { if (g!=null) { @@ -18,12 +18,28 @@ namespace StgSharp.Control } } - public void ComplexBind(Point p, Circle c) + /// + /// 将点绑定在 + /// + /// 绑定的点 + /// 被限定的圆 + public void Complex(Point p, Circle c) + { + c.ComplexBind += this.ac; + } + public void ac(Point p,Circle c) + { + float r = (float)Math.Sqrt + ((p.X - c.Center.X) * (p.X - c.Center.X) + - (p.Y - c.Center.Y) * (p.Y - c.Center.Y)); + c.Radius= r; + } + + public void Complex(Point p, Line l) { } - - public void ComplexBind(Point p, Line l) + public void al(Point p, Line l) { } diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/GeometryI.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/GeometryI.cs index e9b886e4..1daeca31 100644 --- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/GeometryI.cs +++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/Geometry/GeometryI.cs @@ -33,6 +33,18 @@ namespace StgSharp.Geometry } } + public delegate void ComplexBindHandler(Point sender, Circle sender2); + + protected ComplexBindHandler complexBindHandler; + + internal event ComplexBindHandler ComplexBind + { + add { this.complexBindHandler += value; } + remove { this.complexBindHandler -= value; } + } + + + public virtual void OnRender() { @@ -42,4 +54,5 @@ namespace StgSharp.Geometry } } + } diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 9efe3ff6..42d7f297 100644 Binary files a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ