134 lines
8.6 KiB
XML
134 lines
8.6 KiB
XML
<Window x:Class="BreCalClient.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:local="clr-namespace:BreCalClient"
|
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
|
xmlns:p = "clr-namespace:BreCalClient.Resources"
|
|
mc:Ignorable="d"
|
|
Title="{DynamicResource textApplicationTitle}" Height="450" Width="800" Loaded="Window_Loaded" Closing="Window_Closing" Icon="Resources/containership.ico">
|
|
<Window.Resources>
|
|
<local:BoolToIndexConverter x:Key="boolToIndexConverter" />
|
|
</Window.Resources>
|
|
<xctk:BusyIndicator Name="busyIndicator" IsBusy="True">
|
|
<xctk:BusyIndicator.ProgressBarStyle>
|
|
<Style TargetType="ProgressBar">
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
</Style>
|
|
</xctk:BusyIndicator.ProgressBarStyle>
|
|
<xctk:BusyIndicator.BusyContent>
|
|
<Grid Width="320">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="28" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1*" />
|
|
<ColumnDefinition Width="1*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Content="{x:Static p:Resources.textUserlogin}" Grid.Row="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
|
<Label Content="{x:Static p:Resources.textUsername}" Grid.Row="1" VerticalContentAlignment="Center" />
|
|
<Label Content="{x:Static p:Resources.textPassword}" Grid.Row="2" VerticalContentAlignment="Center" />
|
|
<TextBox Name="textUsername" Grid.Row="1" Grid.Column="1" Margin="2" VerticalContentAlignment="Center" />
|
|
<PasswordBox Name="textPassword" Grid.Row="2" Grid.Column="1" Margin="2" VerticalContentAlignment="Center" PasswordChar="*"/>
|
|
<Label Name="labelLoginResult" Grid.Row="3" Grid.ColumnSpan="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
|
<Button Name="buttonLogin" Content="{x:Static p:Resources.textLogin}" Grid.Row="4" Grid.Column="0" Margin="2" Click="buttonLogin_Click" IsDefault="True" />
|
|
<Button Name="buttonExit" Content="{x:Static p:Resources.textExit}" Grid.Row="4" Grid.Column="1" Margin="2" Click="buttonExit_Click" />
|
|
</Grid>
|
|
</xctk:BusyIndicator.BusyContent>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="56" />
|
|
<RowDefinition Height="28" />
|
|
<RowDefinition Height="34" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="28" />
|
|
</Grid.RowDefinitions>
|
|
<local:SearchFilterControl Grid.Row="0" x:Name="searchFilterControl" />
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60" />
|
|
<ColumnDefinition Width=".1*" />
|
|
<ColumnDefinition Width=".2*" />
|
|
<ColumnDefinition Width=".6*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Button Margin="2" Grid.Column="0" Content="{x:Static p:Resources.textNewDots}" x:Name="buttonNew" Visibility="Hidden" Click="buttonNew_Click" Background="Transparent"/>
|
|
<Label Content="{x:Static p:Resources.textSortOrder}" Grid.Column="1" HorizontalContentAlignment="Right"/>
|
|
<ComboBox x:Name="comboBoxSortOrder" Margin="2" Grid.Column="2" />
|
|
</Grid>
|
|
<Grid Grid.Row="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width=".1*" />
|
|
<ColumnDefinition Width=".15*" />
|
|
<ColumnDefinition Width=".15*" />
|
|
<ColumnDefinition Width=".15*" />
|
|
<ColumnDefinition Width=".15*" />
|
|
<ColumnDefinition Width=".15*" />
|
|
<ColumnDefinition Width=".15*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Label Grid.Column="0" Background="#203864" Foreground="White" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="1" Background="#203864" Foreground="White" Content="Agent" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="2" Background="#203864" Foreground="White" Content="Festmacher" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="3" Background="#203864" Foreground="White" Content="Hafenamt" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="4" Background="#203864" Foreground="White" Content="Lotsen" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="5" Background="#203864" Foreground="White" Content="Schlepper" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="6" Background="#203864" Foreground="White" Content="Terminal" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
</Grid>
|
|
<ScrollViewer Grid.Row="3" VerticalScrollBarVisibility="Auto">
|
|
<StackPanel x:Name="stackPanel"/>
|
|
</ScrollViewer>
|
|
<StatusBar Grid.Row="4">
|
|
<StatusBar.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="30" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="100" />
|
|
</Grid.ColumnDefinitions>
|
|
</Grid>
|
|
</ItemsPanelTemplate>
|
|
</StatusBar.ItemsPanel>
|
|
<StatusBarItem Grid.Column="0">
|
|
<TextBlock Name="labelGeneralStatus" FontSize="9"></TextBlock>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="1"/>
|
|
<StatusBarItem Grid.Column="2">
|
|
<TextBlock Name="labelVersion"></TextBlock>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="3"/>
|
|
<StatusBarItem Grid.Column="4">
|
|
<TextBlock Name="labelUsername"></TextBlock>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="5"/>
|
|
<StatusBarItem Grid.Column="6">
|
|
<Button x:Name="buttonInfo" Content="?" Click="buttonInfo_Click" Width="20" />
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="7"/>
|
|
<StatusBarItem Grid.Column="8">
|
|
<TextBlock Name="labelStatusBar"></TextBlock>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="9"/>
|
|
<StatusBarItem Grid.Column="10">
|
|
<ProgressBar Name="generalProgressStatus" Width="90" Height="16"/>
|
|
</StatusBarItem>
|
|
</StatusBar>
|
|
</Grid>
|
|
</xctk:BusyIndicator>
|
|
</Window>
|