diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/3964e525-8287-4505-8fe4-b3065fd87b9c.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/3964e525-8287-4505-8fe4-b3065fd87b9c.vsidx deleted file mode 100644 index cd251cd1..00000000 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/3964e525-8287-4505-8fe4-b3065fd87b9c.vsidx and /dev/null differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/6073bfa4-089d-4f49-9e4b-d9de56e9fcc1.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/6073bfa4-089d-4f49-9e4b-d9de56e9fcc1.vsidx deleted file mode 100644 index 9dd8d284..00000000 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/6073bfa4-089d-4f49-9e4b-d9de56e9fcc1.vsidx and /dev/null differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/92ebee6a-a2e6-4d44-8e3b-a32b173bf7a5.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/92ebee6a-a2e6-4d44-8e3b-a32b173bf7a5.vsidx new file mode 100644 index 00000000..ec04e2e0 Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/92ebee6a-a2e6-4d44-8e3b-a32b173bf7a5.vsidx differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/a916c122-86f2-4079-8cb9-b812db9ffa33.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/a916c122-86f2-4079-8cb9-b812db9ffa33.vsidx deleted file mode 100644 index 26d0173d..00000000 Binary files a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/a916c122-86f2-4079-8cb9-b812db9ffa33.vsidx and /dev/null differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/b2085715-9976-42af-bfce-38644920517a.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/b2085715-9976-42af-bfce-38644920517a.vsidx new file mode 100644 index 00000000..7c4b31fe Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/b2085715-9976-42af-bfce-38644920517a.vsidx differ diff --git a/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/fe4a42be-fd84-4b3b-b425-8400af1a71a0.vsidx b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/fe4a42be-fd84-4b3b-b425-8400af1a71a0.vsidx new file mode 100644 index 00000000..9db4e374 Binary files /dev/null and b/源代码/.Net Framework/Stg_Sharp/.vs/Stg_Sharp/FileContentIndex/fe4a42be-fd84-4b3b-b425-8400af1a71a0.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 bb4b42df..524b12ba 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 29ae4812..860d40ad 100644 --- a/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs +++ b/源代码/.Net Framework/Stg_Sharp/Debug/Program.cs @@ -14,10 +14,7 @@ namespace Debug { public static void Main() { - - int b = A.a; - A.a = 10; - + A a=new A(); } @@ -27,6 +24,23 @@ namespace Debug public class A { public static int a = 10; + public int b = 10; + } + + static class b + { + public static void change(this A a, int b) + { + a.b = b; + } + } + + static class c + { + public static void change(this A a, int b) + { + a.b = b++; + } } diff --git a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/UI/Option.cs b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/UI/Option.cs index 8ef1a9f1..85195d65 100644 --- a/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/UI/Option.cs +++ b/源代码/.Net Framework/Stg_Sharp/Stg_Sharp/UI/Option.cs @@ -17,9 +17,30 @@ namespace StgSharp.UI add { this.selectEventHandler += value; } remove { this.selectEventHandler -= value; } } + + internal float[] textureLocation; + + + + + internal float[] highLightlocation = new float[4] ; + + public float[] HighLightTextureLocation + { + get { return highLightlocation; } + set + { + if (value.Length == 4) + { + highLightlocation = value; + } + else throw new ArgumentException("Too much or too few data is provided"); + } + } + public void HighLight() { - + this.textureLocation = highLightlocation; } public void LowLight()