diff --git a/grzyClothTool/Views/BuildWindow.xaml b/grzyClothTool/Views/BuildWindow.xaml index cdf48fd..ad5c5c5 100644 --- a/grzyClothTool/Views/BuildWindow.xaml +++ b/grzyClothTool/Views/BuildWindow.xaml @@ -38,12 +38,12 @@ + x:Name="name" + Label="Project name" + Margin="15,15,15,0" + VerticalAlignment="Top" + HorizontalAlignment="Stretch" + Text="{Binding ProjectName}" /> 50) + { + result = "Project name cannot be longer than 50 characters"; + } + else if (!Regex.IsMatch(ProjectName, @"^[a-z0-9_]+$")) + { + result = "Project name can only contain lowercase letters, numbers, and underscores"; + + } + + return result; + } } }