Small fixes

This commit is contained in:
2023-03-05 03:00:13 +01:00
parent 342c7b92bd
commit 7416c03b92
3 changed files with 52 additions and 42 deletions

View File

@ -35,6 +35,10 @@ namespace WGneu {
}
}
public static IEnumerable<T> FindVisualChilds<T>(DependencyObject depObj, IEnumerable<DependencyObject> exempt) where T : DependencyObject {
return FindVisualChilds<T>(depObj).Where(c => !exempt.Contains(c));
}
public static int Modulo(string a, int b) {
if (!a.All(char.IsDigit))
throw new ArgumentException("First argument has to be a decimal string");