This commit is contained in:
Meik
2025-11-11 11:03:42 +01:00
commit dc3e8a2e4c
582 changed files with 191465 additions and 0 deletions

View File

@@ -0,0 +1,96 @@
<Window x:Class="GraphicData.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:uc="clr-namespace:GraphicData.User_Control"
xmlns:local="clr-namespace:GraphicData"
mc:Ignorable="d"
Title="MainWindow" x:Name="MyWindow" Height="500" Width="900">
<Grid Background="{DynamicResource color363636}">
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="2*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Border Background="{DynamicResource color272727}" Margin="10" CornerRadius="10" Padding="5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="Person auswählen:" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Foreground="{DynamicResource color9B9B9B}">
</TextBlock>
<ComboBox x:Name="PersonComboBox" Grid.Column="1" SelectionChanged="PersonComboBox_SelectionChanged" Height="30">
</ComboBox>
</Grid>
</Border>
<Border Grid.Column="1" Background="{DynamicResource color272727}" Margin="10" CornerRadius="10" Padding="5">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="Datum auswählen:" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Foreground="{DynamicResource color9B9B9B}">
</TextBlock>
<ComboBox x:Name="DateComboBox" Grid.Column="1" SelectionChanged="DateComboBox_SelectionChanged" Height="30">
</ComboBox>
</Grid>
</Border>
<Border Grid.Column="2" Background="{DynamicResource color272727}" Margin="10" CornerRadius="10" Padding="5" MouseLeftButtonUp="Border_MouseLeftButtonUp">
<TextBlock Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Zufällige Daten" FontFamily="Calibri" FontSize="14" FontWeight="Bold" Foreground="{DynamicResource color9B9B9B}">
</TextBlock>
</Border>
<Border Grid.Column="3" Background="{DynamicResource color272727}" Margin="10" CornerRadius="10" Padding="5">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="2*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ComboBox x:Name="WarningBox" Grid.Row="0" Margin="5" Foreground="{DynamicResource colorFB9D28}" SelectionChanged="WarningBox_SelectionChanged">
</ComboBox>
<ComboBox x:Name="ErrorBox" Grid.Row="1" Margin="5" Foreground="{DynamicResource colorCE3D36}" SelectionChanged="ErrorBox_SelectionChanged">
</ComboBox>
<CheckBox x:Name="ThresholdButton" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" Checked="ThresholdButton_StatusChanged" Unchecked="ThresholdButton_StatusChanged">
</CheckBox>
</Grid>
</Border>
</Grid>
<Grid x:Name="UCGrid" Grid.Row="2" Height="320" Width="620">
<uc:uDataGraph JsonData="{Binding ElementName=MyWindow, Path=DataModel.Data}" IndexTime="{Binding ElementName=MyWindow, Path=DataModel.IndexTime}" IndexValue="{Binding ElementName=MyWindow, Path=DataModel.IndexValue}" IndexDuration="{Binding ElementName=MyWindow, Path=DataModel.IndexDuration}" WarningThreshold="{Binding ElementName=MyWindow, Path=DataModel.WarniningThreshold}" ErrorThreshold="{Binding ElementName=MyWindow, Path=DataModel.ErrorThreshold}" IsThresholdActive="{Binding ElementName=MyWindow, Path=DataModel.IsThresholdActive}"/>
</Grid>
</Grid>
</Window>