Uncomented Validators, Add Credentials for Testing

This commit is contained in:
frauseo 2020-05-26 19:01:13 +02:00
parent f6be9f23f8
commit d73dc261e7
2 changed files with 9 additions and 9 deletions

View File

@ -27,7 +27,7 @@ namespace LoggingClient.ViewModel
public LogViewModel()
{
TxtConnectionString = "Server=localhost;Database=;Uid=root;Pwd=;";
TxtConnectionString = "Server=localhost;Database=inventarisierungsloesung;Uid=root;Pwd=MySQLPassword1234!;";
_enterSeverity = 1;
Logs = new ObservableCollection<LogModel>();

View File

@ -54,39 +54,39 @@ CanUserResizeRows="False">
<TextBox HorizontalAlignment="Left" Height="25" Margin="10,355,0,0" TextWrapping="Wrap" Name="EnterPod" VerticalAlignment="Top" Width="110">
<TextBox.Text>
<Binding Path="EnterPod" UpdateSourceTrigger="PropertyChanged">
<!--<Binding.ValidationRules>
<Binding.ValidationRules>
<validators:StringRangeValidationRule
ErrorMessage="Pod must contain atleast 3 characters up to 255" />
</Binding.ValidationRules>-->
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
<TextBox HorizontalAlignment="Left" Height="25" Margin="125,355,0,0" TextWrapping="Wrap" Name="EnterHostname" VerticalAlignment="Top" Width="110">
<TextBox.Text>
<Binding Path="EnterHostname" UpdateSourceTrigger="PropertyChanged">
<!--<Binding.ValidationRules>
<Binding.ValidationRules>
<validators:StringRangeValidationRule
ErrorMessage="Hostname must contain atleast 3 characters up to 255" />
</Binding.ValidationRules>-->
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
<TextBox HorizontalAlignment="Left" Height="25" Margin="240,355,0,0" TextWrapping="Wrap" Name="EnterSeverity" VerticalAlignment="Top" Width="110" >
<TextBox.Text>
<Binding Path="EnterSeverity" UpdateSourceTrigger="PropertyChanged">
<!--<Binding.ValidationRules>
<Binding.ValidationRules>
<validators:IntRangeValidationRule/>
</Binding.ValidationRules>-->
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>
<TextBox HorizontalAlignment="Left" Height="50" Margin="355,355,0,0" TextWrapping="Wrap" Name="EnterMessage" VerticalAlignment="Top" Width="110">
<TextBox.Text>
<Binding Path="EnterMessage" UpdateSourceTrigger="PropertyChanged">
<!--<Binding.ValidationRules>
<Binding.ValidationRules>
<validators:StringRangeValidationRule
ErrorMessage="Message must contain atleast 3 characters up to 255" />
</Binding.ValidationRules>-->
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox>