65 lines
4.0 KiB
XML
65 lines
4.0 KiB
XML
<UserControl x:Class="ENI2.Controls.ServerStatusControl"
|
|
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:ENI2.Controls"
|
|
xmlns:p="clr-namespace:ENI2.Properties"
|
|
xmlns:util="clr-namespace:ENI2.Util"
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="600" d:DesignWidth="600">
|
|
<GroupBox Name="groupBoxRP" Header="{x:Static p:Resources.textServerStatus}">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
|
<Label Content="Excel:" />
|
|
<Label Name="labelStatusExcel" Content="?" FontWeight="Bold" />
|
|
<Label Content="Transmitter:" />
|
|
<Label Name="labelStatusTransmitter" Content="?" FontWeight="Bold" />
|
|
<Label Content="Report:" />
|
|
<Label Name="labelStatusReport" Content="?" FontWeight="Bold" />
|
|
<Button Name="refreshButton" Content="{x:Static p:Resources.textRefresh}" Margin="4" Background="Transparent" Click="refreshButton_Click"/>
|
|
</StackPanel>
|
|
<local:ENIDataGrid Grid.Row="1"
|
|
Margin="2,4,2,2" x:Name="dataGridStatus" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"
|
|
SelectionMode="Single" AutoGenerateColumns="False" >
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="{x:Static p:Resources.textClass}" Binding="{Binding Class}" IsReadOnly="True" Width="0.1*" />
|
|
<DataGridTextColumn Header="{x:Static p:Resources.textStatus}" Binding="{Binding Status}" IsReadOnly="True" Width="0.1*" />
|
|
<DataGridTextColumn Header="{x:Static p:Resources.textCreated}" Binding="{Binding Timestamp}" IsReadOnly="True" Width="0.2*" />
|
|
<DataGridTextColumn Header="{x:Static p:Resources.textVisitTransitId}" Binding="{Binding Id}" IsReadOnly="True" Width="0.2*" />
|
|
</DataGrid.Columns>
|
|
</local:ENIDataGrid>
|
|
<xctk:BusyIndicator IsBusy="True" Grid.Row="1" x:Name="busyIndicator">
|
|
<xctk:BusyIndicator.BusyContentTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Margin="4">
|
|
<TextBlock Text="{x:Static p:Resources.textUpdateStatus}" FontWeight="Bold" HorizontalAlignment="Center" Width="200"/>
|
|
<StackPanel Margin="4">
|
|
<TextBlock x:Name="textUpdateProgress" Loaded="textUpdateProgress_Loaded" />
|
|
<ProgressBar Value="40" Height="15" x:Name="progressBarUpdate" Loaded="progressBarUpdate_Loaded"/>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</xctk:BusyIndicator.BusyContentTemplate>
|
|
<xctk:BusyIndicator.OverlayStyle>
|
|
<Style TargetType="Rectangle">
|
|
<Setter Property="Fill" Value="#C1C1C1C1" />
|
|
</Style>
|
|
</xctk:BusyIndicator.OverlayStyle>
|
|
<xctk:BusyIndicator.ProgressBarStyle>
|
|
<Style TargetType="ProgressBar">
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
</Style>
|
|
</xctk:BusyIndicator.ProgressBarStyle>
|
|
|
|
</xctk:BusyIndicator>
|
|
|
|
</Grid>
|
|
</GroupBox>
|
|
</UserControl>
|