]> O.S.I.I.S - jp/crow.git/commitdiff
divers
authorjpbruyere <jp.bruyere@hotmail.com>
Mon, 20 Jun 2016 23:59:26 +0000 (01:59 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Mon, 20 Jun 2016 23:59:26 +0000 (01:59 +0200)
.gitignore
src/GraphicObjects/GraphicObject.cs
src/Interface.cs

index ce290fc41b5e8171c08fc1d85c69d1ad9510db4d..0bc65047b87879242ca06d505ff7e3351ba352d5 100644 (file)
@@ -1,3 +1,4 @@
+build
 Win_x86
 .nuget
 Crow.userprefs
index 75fe4b6316db2ced33e9eb4ba8dcad92844f7e5c..16371e512280abd7427531710584f09388464435 100644 (file)
@@ -1212,9 +1212,9 @@ namespace Crow
                                        if (!string.IsNullOrEmpty (xaa.AttributeName))
                                                name = xaa.AttributeName;
                                }
-                               if (value.StartsWith("{")) {
+                               if (value.StartsWith("{",StringComparison.Ordinal)) {
                                        //binding
-                                       if (!value.EndsWith("}"))
+                                       if (!value.EndsWith("}", StringComparison.Ordinal))
                                                throw new Exception (string.Format("GOML:Malformed binding: {0}", value));
 
                                        this.Bindings.Add (new Binding (new MemberReference(this, pi), value.Substring (1, value.Length - 2)));
index 2e145bffb9fe6fa7b79800e78bdc96041fbf32f9..8e00a2847c57c5cca64b11abcb6fa719f05969bb 100644 (file)
 //  You should have received a copy of the GNU General Public License
 //  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 using System;
-using System.Xml.Serialization;
+using System.Collections.Generic;
+using System.Diagnostics;
 using System.IO;
 using System.Reflection;
-using System.Diagnostics;
-using System.Collections.Generic;
-using System.Xml;
-using System.Linq;
-using System.Reflection.Emit;
-using System.CodeDom;
-using Microsoft.CSharp;
-using System.CodeDom.Compiler;
 using System.Threading;
+using System.Xml;
+using System.Xml.Serialization;
 using Cairo;
 
 namespace Crow
@@ -52,6 +47,7 @@ namespace Crow
                internal static bool XmlSerializerInit = false;
                /// <summary> keep ressource path for debug msg </summary>
                internal static string CurrentGOMLPath = "";
+               //used in templatedControl
                internal static int XmlLoaderCount = 0;
 
                public static int TabSize = 4;
@@ -325,6 +321,8 @@ namespace Crow
 
 
                public void Update(){
+                       CurrentInterface = this;
+
                        if (mouseRepeatCount > 0) {
                                int mc = mouseRepeatCount;
                                mouseRepeatCount -= mc;