LGES-OC5-PtoP-Welder/AuroraDevices/AuroraLaser/Coherent/HyperRapid/UCCoherentHyperRapidResourceMonitoring.xaml
2026-06-05 13:44:39 +09:00

157 lines
7.5 KiB
XML

<UserControl x:Class="AuroraLaser.UCCoherentHyperRapidResourceMonitoring"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:AuroraLaser"
xmlns:aurora="clr-namespace:Aurora.View;assembly=Aurora"
xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors"
d:DataContext="{d:DesignInstance Type=local:UCCoherentHyperRapidResourceMonitoringViewModel}"
mc:Ignorable="d"
x:Name="uc"
d:DesignHeight="240" d:DesignWidth="400">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<aurora:SharedResourceDictionary Source="pack://application:,,,/AuroraUIComponent;component/Style/Generic.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Style x:Key="StTextBox" TargetType="TextBox">
<Setter Property="Margin" Value="5 7"/>
<Setter Property="Padding" Value="5 7"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="HorizontalContentAlignment" Value="Right"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style x:Key="StTextBoxReadOnly" TargetType="TextBox" BasedOn="{StaticResource StTextBox}">
<Setter Property="IsEnabled" Value="False"/>
</Style>
<Style x:Key="StTableHeader" TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Margin" Value="1"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</ResourceDictionary>
</UserControl.Resources>
<behavior:Interaction.Triggers>
<behavior:PropertyChangedTrigger Binding="{Binding IsVisible, ElementName=uc}">
<behavior:InvokeCommandAction Command="{Binding CMD_VisibleChanged}" CommandParameter="{Binding IsVisible, ElementName=uc}"/>
</behavior:PropertyChangedTrigger>
</behavior:Interaction.Triggers>
<GroupBox Header="레이저 관리 항목 모니터링">
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0">
<!-- Name -->
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Grid.Resources>
<Style TargetType="TextBlock" BasedOn="{StaticResource StTableHeader}"/>
</Grid.Resources>
<Border Grid.Row="0" Background="#1A2242" Margin="1" Padding="10">
<TextBlock>Seeder Diode 남은 시간</TextBlock>
</Border>
<Border Grid.Row="1" Background="#1A2242" Margin="1" Padding="10">
<TextBlock>Diode1 남은 시간</TextBlock>
</Border>
<Border Grid.Row="2" Background="#1A2242" Margin="1" Padding="10">
<TextBlock>Diode2 남은 시간</TextBlock>
</Border>
<Border Grid.Row="3" Background="#1A2242" Margin="1" Padding="10">
<TextBlock>Diode3 남은 시간</TextBlock>
</Border>
<Border Grid.Row="4" Background="#1A2242" Margin="1" Padding="10">
<TextBlock>THG 남은 시간</TextBlock>
</Border>
</Grid>
<Grid Grid.Column="1">
<!-- Progress Bar -->
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition Height="40"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Border Grid.Row="0">
<Grid>
<ProgressBar Value="{Binding SeederDiodeElapsedTime}" Height="41" VerticalAlignment="Top"/>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding SeederDiodeElapsedTime}"/>
</Grid>
</Border>
<Border Grid.Row="0" Grid.Column="1" Margin="5 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left">
<TextBlock>Hour</TextBlock>
</Border>
<Border Grid.Row="1">
<Grid>
<ProgressBar Value="{Binding Diode1ElapsedTime}"/>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Diode1ElapsedTime}"/>
</Grid>
</Border>
<Border Grid.Row="1" Grid.Column="1" Margin="5 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left">
<TextBlock>Hour</TextBlock>
</Border>
<Border Grid.Row="2">
<Grid>
<ProgressBar Value="{Binding Diode2ElapsedTime}"/>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Diode2ElapsedTime}"/>
</Grid>
</Border>
<Border Grid.Row="2" Grid.Column="1" Margin="5 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left">
<TextBlock>Hour</TextBlock>
</Border>
<Border Grid.Row="3">
<Grid>
<ProgressBar Value="{Binding Diode3ElapsedTime}"/>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Diode3ElapsedTime}"/>
</Grid>
</Border>
<Border Grid.Row="3" Grid.Column="1" Margin="5 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left">
<TextBlock>Hour</TextBlock>
</Border>
<Border Grid.Row="4">
<Grid>
<ProgressBar Value="{Binding ThgElapsedTime}"/>
<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding ThgElapsedTime}"/>
</Grid>
</Border>
<Border Grid.Row="4" Grid.Column="1" Margin="5 0 0 0" VerticalAlignment="Center" HorizontalAlignment="Left">
<TextBlock>Hour</TextBlock>
</Border>
</Grid>
</Grid>
</GroupBox>
</UserControl>