to pascal case

This commit is contained in:
srthMD 2024-07-14 21:42:13 +03:00
parent 97ed8365fe
commit 978a2ff3fb

View File

@ -265,13 +265,12 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidCharacter;
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 _))
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidNumberValue;
else if ((name.StartsWith("FFlag") || name.StartsWith("DFFlag")) && lowerValue != "true" && lowerValue != "false")
errorMessage = Bloxstrap.Resources.Strings.Menu_FastFlagEditor_InvalidBoolValue;
if (!String.IsNullOrEmpty(errorMessage))
{
Frontend.ShowMessageBox(String.Format(errorMessage, name), MessageBoxImage.Error);
@ -281,7 +280,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
return true;
}
private bool Validate_Filter(string name, string value)
private bool ValidateFilter(string name, string value)
{
if(name.StartsWith("FFlag") || name.StartsWith("DFFlag"))
return _boolFilterPattern.IsMatch(value);