Uncomented Validators, Add Credentials for Testing
This commit is contained in:
parent
f6be9f23f8
commit
d73dc261e7
@ -27,7 +27,7 @@ namespace LoggingClient.ViewModel
|
|||||||
|
|
||||||
public LogViewModel()
|
public LogViewModel()
|
||||||
{
|
{
|
||||||
TxtConnectionString = "Server=localhost;Database=;Uid=root;Pwd=;";
|
TxtConnectionString = "Server=localhost;Database=inventarisierungsloesung;Uid=root;Pwd=MySQLPassword1234!;";
|
||||||
_enterSeverity = 1;
|
_enterSeverity = 1;
|
||||||
|
|
||||||
Logs = new ObservableCollection<LogModel>();
|
Logs = new ObservableCollection<LogModel>();
|
||||||
|
@ -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 HorizontalAlignment="Left" Height="25" Margin="10,355,0,0" TextWrapping="Wrap" Name="EnterPod" VerticalAlignment="Top" Width="110">
|
||||||
<TextBox.Text>
|
<TextBox.Text>
|
||||||
<Binding Path="EnterPod" UpdateSourceTrigger="PropertyChanged">
|
<Binding Path="EnterPod" UpdateSourceTrigger="PropertyChanged">
|
||||||
<!--<Binding.ValidationRules>
|
<Binding.ValidationRules>
|
||||||
<validators:StringRangeValidationRule
|
<validators:StringRangeValidationRule
|
||||||
ErrorMessage="Pod must contain atleast 3 characters up to 255" />
|
ErrorMessage="Pod must contain atleast 3 characters up to 255" />
|
||||||
</Binding.ValidationRules>-->
|
</Binding.ValidationRules>
|
||||||
</Binding>
|
</Binding>
|
||||||
</TextBox.Text>
|
</TextBox.Text>
|
||||||
</TextBox>
|
</TextBox>
|
||||||
<TextBox HorizontalAlignment="Left" Height="25" Margin="125,355,0,0" TextWrapping="Wrap" Name="EnterHostname" VerticalAlignment="Top" Width="110">
|
<TextBox HorizontalAlignment="Left" Height="25" Margin="125,355,0,0" TextWrapping="Wrap" Name="EnterHostname" VerticalAlignment="Top" Width="110">
|
||||||
<TextBox.Text>
|
<TextBox.Text>
|
||||||
<Binding Path="EnterHostname" UpdateSourceTrigger="PropertyChanged">
|
<Binding Path="EnterHostname" UpdateSourceTrigger="PropertyChanged">
|
||||||
<!--<Binding.ValidationRules>
|
<Binding.ValidationRules>
|
||||||
<validators:StringRangeValidationRule
|
<validators:StringRangeValidationRule
|
||||||
ErrorMessage="Hostname must contain atleast 3 characters up to 255" />
|
ErrorMessage="Hostname must contain atleast 3 characters up to 255" />
|
||||||
</Binding.ValidationRules>-->
|
</Binding.ValidationRules>
|
||||||
</Binding>
|
</Binding>
|
||||||
</TextBox.Text>
|
</TextBox.Text>
|
||||||
</TextBox>
|
</TextBox>
|
||||||
<TextBox HorizontalAlignment="Left" Height="25" Margin="240,355,0,0" TextWrapping="Wrap" Name="EnterSeverity" VerticalAlignment="Top" Width="110" >
|
<TextBox HorizontalAlignment="Left" Height="25" Margin="240,355,0,0" TextWrapping="Wrap" Name="EnterSeverity" VerticalAlignment="Top" Width="110" >
|
||||||
<TextBox.Text>
|
<TextBox.Text>
|
||||||
<Binding Path="EnterSeverity" UpdateSourceTrigger="PropertyChanged">
|
<Binding Path="EnterSeverity" UpdateSourceTrigger="PropertyChanged">
|
||||||
<!--<Binding.ValidationRules>
|
<Binding.ValidationRules>
|
||||||
<validators:IntRangeValidationRule/>
|
<validators:IntRangeValidationRule/>
|
||||||
</Binding.ValidationRules>-->
|
</Binding.ValidationRules>
|
||||||
</Binding>
|
</Binding>
|
||||||
</TextBox.Text>
|
</TextBox.Text>
|
||||||
</TextBox>
|
</TextBox>
|
||||||
<TextBox HorizontalAlignment="Left" Height="50" Margin="355,355,0,0" TextWrapping="Wrap" Name="EnterMessage" VerticalAlignment="Top" Width="110">
|
<TextBox HorizontalAlignment="Left" Height="50" Margin="355,355,0,0" TextWrapping="Wrap" Name="EnterMessage" VerticalAlignment="Top" Width="110">
|
||||||
<TextBox.Text>
|
<TextBox.Text>
|
||||||
<Binding Path="EnterMessage" UpdateSourceTrigger="PropertyChanged">
|
<Binding Path="EnterMessage" UpdateSourceTrigger="PropertyChanged">
|
||||||
<!--<Binding.ValidationRules>
|
<Binding.ValidationRules>
|
||||||
<validators:StringRangeValidationRule
|
<validators:StringRangeValidationRule
|
||||||
ErrorMessage="Message must contain atleast 3 characters up to 255" />
|
ErrorMessage="Message must contain atleast 3 characters up to 255" />
|
||||||
</Binding.ValidationRules>-->
|
</Binding.ValidationRules>
|
||||||
</Binding>
|
</Binding>
|
||||||
</TextBox.Text>
|
</TextBox.Text>
|
||||||
</TextBox>
|
</TextBox>
|
||||||
|
Loading…
Reference in New Issue
Block a user