mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
to pascal case
This commit is contained in:
parent
97ed8365fe
commit
978a2ff3fb
@ -265,13 +265,12 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
|||||||
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidCharacter;
|
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidCharacter;
|
||||||
|
|
||||||
if (name.EndsWith("_PlaceFilter") || name.EndsWith("_DataCenterFilter"))
|
if (name.EndsWith("_PlaceFilter") || name.EndsWith("_DataCenterFilter"))
|
||||||
errorMessage = !Validate_Filter(name, value) ? Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidPlaceFilter : "";
|
errorMessage = !ValidateFilter(name, value) ? Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidPlaceFilter : "";
|
||||||
else if ((name.StartsWith("FInt") || name.StartsWith("DFInt")) && !Int32.TryParse(value, out _))
|
else if ((name.StartsWith("FInt") || name.StartsWith("DFInt")) && !Int32.TryParse(value, out _))
|
||||||
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidNumberValue;
|
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidNumberValue;
|
||||||
else if ((name.StartsWith("FFlag") || name.StartsWith("DFFlag")) && lowerValue != "true" && lowerValue != "false")
|
else if ((name.StartsWith("FFlag") || name.StartsWith("DFFlag")) && lowerValue != "true" && lowerValue != "false")
|
||||||
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidBoolValue;
|
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidBoolValue;
|
||||||
|
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(errorMessage))
|
if (!String.IsNullOrEmpty(errorMessage))
|
||||||
{
|
{
|
||||||
Frontend.ShowMessageBox(String.Format(errorMessage, name), MessageBoxImage.Error);
|
Frontend.ShowMessageBox(String.Format(errorMessage, name), MessageBoxImage.Error);
|
||||||
@ -281,7 +280,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool Validate_Filter(string name, string value)
|
private bool ValidateFilter(string name, string value)
|
||||||
{
|
{
|
||||||
if(name.StartsWith("FFlag") || name.StartsWith("DFFlag"))
|
if(name.StartsWith("FFlag") || name.StartsWith("DFFlag"))
|
||||||
return _boolFilterPattern.IsMatch(value);
|
return _boolFilterPattern.IsMatch(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user