aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/StyleReader.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2016-08-01 12:45:27 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2016-08-01 12:47:47 +0200
commit7d84ba29057264497818c4c315bec7547cc9afac (patch)
tree4c811c5dac9d5097ddbac74dbe83a2ae4483beb2 /src/StyleReader.cs
parentfd5b776826028a0c12a92f11d1daf4065d4c6024 (diff)
Improve update queuing
modifié : src/GraphicObjects/GenericStack.cs modifié : src/GraphicObjects/GraphicObject.cs modifié : src/GraphicObjects/Group.cs modifié : src/GraphicObjects/Label.cs modifié : src/GraphicObjects/ListBox.cs modifié : src/GraphicObjects/TabView.cs modifié : src/Interface.cs modifié : src/StyleReader.cs tests updates modifié : Tests/BasicTests.cs modifié : Tests/Interfaces/Divers/testWindow.goml modifié : Tests/Interfaces/Divers/welcome.crow modifié : Tests/Interfaces/Expandable/0.crow renommé : Tests/Interfaces/Nouveau dossier/test4.1.crow -> Tests/Interfaces/Unsorted/test4.1.crow renommé : Tests/Interfaces/Nouveau dossier/test4.crow -> Tests/Interfaces/Unsorted/test4.crow renommé : Tests/Interfaces/Nouveau dossier/test6.crow -> Tests/Interfaces/Unsorted/test6.crow renommé : Tests/Interfaces/Nouveau dossier/testColorList.crow -> Tests/Interfaces/Unsorted/testColorList.crow renommé : Tests/Interfaces/Nouveau dossier/testDirViewer.crow -> Tests/Interfaces/Unsorted/testDirViewer.crow renommé : Tests/Interfaces/Nouveau dossier/testFileDialog.goml -> Tests/Interfaces/Unsorted/testFileDialog.goml renommé : Tests/Interfaces/Nouveau dossier/testImage.crow -> Tests/Interfaces/Unsorted/testImage.crow renommé : Tests/Interfaces/Nouveau dossier/testLabel.crow -> Tests/Interfaces/Unsorted/testLabel.crow renommé : Tests/Interfaces/Nouveau dossier/testMsgBox.crow -> Tests/Interfaces/Unsorted/testMsgBox.crow renommé : Tests/Interfaces/Nouveau dossier/testOutOfClipUpdate.crow -> Tests/Interfaces/Unsorted/testOutOfClipUpdate.crow renommé : Tests/Interfaces/Nouveau dossier/testRadioButton2.crow -> Tests/Interfaces/Unsorted/testRadioButton2.crow renommé : Tests/Interfaces/Nouveau dossier/testTabView.crow -> Tests/Interfaces/Unsorted/testTabView.crow renommé : Tests/Interfaces/Nouveau dossier/testTreeView.crow -> Tests/Interfaces/Unsorted/testTreeView.crow renommé : Tests/Interfaces/Nouveau dossier/testTypeViewer.goml -> Tests/Interfaces/Unsorted/testTypeViewer.goml modifié : Tests/Tests.csproj
Diffstat (limited to 'src/StyleReader.cs')
-rw-r--r--src/StyleReader.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/StyleReader.cs b/src/StyleReader.cs
index 11174e29..92b24e2d 100644
--- a/src/StyleReader.cs
+++ b/src/StyleReader.cs
@@ -34,7 +34,6 @@ namespace Crow
public StyleReader (Assembly assembly, string resId)
: base(assembly.GetManifestResourceStream (resId))
{
- Interface iface = Interface.CurrentInterface;
string styleKey = resId.Substring (0, resId.Length - 6);
string token = "";
List<string> targetsClasses = new List<string> ();
@@ -105,11 +104,11 @@ namespace Crow
string expression = token.Trim ();
foreach (string tc in targetsClasses) {
- if (!iface.Styling.ContainsKey (tc))
- iface.Styling [tc] = new Dictionary<string, object> ();
- else if (iface.Styling [tc].ContainsKey (currentProperty))
+ if (!Interface.Styling.ContainsKey (tc))
+ Interface.Styling [tc] = new Dictionary<string, object> ();
+ else if (Interface.Styling [tc].ContainsKey (currentProperty))
continue;
- iface.Styling [tc] [currentProperty] = expression;
+ Interface.Styling [tc] [currentProperty] = expression;
}
token = "";
}