mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Display conditions - Some work on inputs supporting multiple types
This commit is contained in:
1 parent
f617a6461a
commit
b869078f08
16 files changed
+112
-49
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows.Input;
|
||||
using Artemis.Core.Plugins.Abstract.DataModels.Attributes;
|
||||
using Artemis.UI.Shared.DataModelVisualization;
|
||||
@@ -16,5 +17,10 @@ namespace Artemis.UI.DataModelVisualization.Input
|
||||
var regex = new Regex("[^0-9]+");
|
||||
e.Handled = regex.IsMatch(e.Text);
|
||||
}
|
||||
|
||||
protected override int ConvertToSupportedType(object source)
|
||||
{
|
||||
return Convert.ToInt32(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user