aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/src
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-07-12 08:45:51 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-07-12 08:45:51 +0200
commit5c91d515f8e05171ff94323c49831f080a11adec (patch)
tree524bdc58416c40c4bf007988dade3b051010771a /Samples/common/src
parent5c30903a5f07342b1c2741240ff8dd173c1c641f (diff)
replace FastEnum with Enums.NET for flags handling, Bubbling event as Flag, requiredLayouting, MAXLAYOUTINGTRY=>30
Diffstat (limited to 'Samples/common/src')
-rw-r--r--Samples/common/src/Editor.cs4
-rw-r--r--Samples/common/src/SampleBase.cs4
2 files changed, 4 insertions, 4 deletions
diff --git a/Samples/common/src/Editor.cs b/Samples/common/src/Editor.cs
index 7b0f1f04..686afaed 100644
--- a/Samples/common/src/Editor.cs
+++ b/Samples/common/src/Editor.cs
@@ -110,7 +110,7 @@ namespace Crow
Suggestions = (new string[] {"Stretched", "Fit"}).
Where (s => s.StartsWith (currentToken.AsString (_text), StringComparison.OrdinalIgnoreCase)).ToList ();
else if (pi.PropertyType == typeof (Fill))
- Suggestions = FastEnumUtility.FastEnum.GetValues<Colors> ()
+ Suggestions = EnumsNET.Enums.GetValues<Colors> ()
.Where (s => s.ToString().StartsWith (currentToken.AsString (_text), StringComparison.OrdinalIgnoreCase)).ToList ();
}
} else if (currentToken.Type == TokenType.AttributeValueOpen) {
@@ -124,7 +124,7 @@ namespace Crow
else if (pi.PropertyType == typeof(bool))
Suggestions = new List<string> (new string[] {"true", "false"});
else if (pi.PropertyType == typeof (Fill))
- Suggestions = FastEnumUtility.FastEnum.GetValues<Colors> ().ToList ();
+ Suggestions = EnumsNET.Enums.GetValues<Colors> ().ToList ();
else if (pi.PropertyType == typeof (Measure))
Suggestions = new List<string> (new string[] {"Stretched", "Fit"});
}
diff --git a/Samples/common/src/SampleBase.cs b/Samples/common/src/SampleBase.cs
index 75f998cd..8d7718ed 100644
--- a/Samples/common/src/SampleBase.cs
+++ b/Samples/common/src/SampleBase.cs
@@ -317,7 +317,7 @@ namespace Samples
}
- IList<Colors> testList = (IList<Colors>)FastEnumUtility.FastEnum.GetValues<Colors>().ToList();//.ColorDic.Values//.OrderBy(c=>c.Hue)
+ IList<Colors> testList = (IList<Colors>)EnumsNET.Enums.GetValues<Colors>().ToList();//.ColorDic.Values//.OrderBy(c=>c.Hue)
//.ThenBy(c=>c.Value).ThenBy(c=>c.Saturation)
//.ToList ();
public IList<Colors> TestList
@@ -330,7 +330,7 @@ namespace Samples
get { return testList; }
}
void OnClear(object sender, MouseButtonEventArgs e) => TestList = null;
- void OnLoadList(object sender, MouseButtonEventArgs e) => TestList = (IList<Colors>)FastEnumUtility.FastEnum.GetValues<Colors>().ToList();
+ void OnLoadList(object sender, MouseButtonEventArgs e) => TestList = (IList<Colors>)EnumsNET.Enums.GetValues<Colors>().ToList();
string curSources = "";