187 lines
13 KiB
XML
187 lines
13 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:sets="clr-namespace:BreCalClient.Properties"
|
|
xmlns:p = "clr-namespace:BreCalClient.Resources"
|
|
mc:Ignorable="d"
|
|
Title="{DynamicResource textApplicationTitle}" Height="{local:SettingBinding Height}" Width="{local:SettingBinding Width}"
|
|
Top="{local:SettingBinding Top}" Left="{local:SettingBinding Left}" 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" />
|
|
<RowDefinition Height="84" />
|
|
</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" FontWeight="Bold" />
|
|
<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" />
|
|
<TextBlock FontSize="10" TextWrapping="Wrap" Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" >
|
|
<Underline>Hinweis</Underline>:<LineBreak />
|
|
Mit der Anmeldung in Bremen Calling akzeptieren Sie die Bedingungen<LineBreak />
|
|
des Systems, die Sie in der aktuell gültigen Fassung unter dem nachfolgenden Link
|
|
einsehen können: <Hyperlink NavigateUri="https://www.bsmd-emswe.eu/disclaimer.html" RequestNavigate="Hyperlink_RequestNavigate">Datenschutzerklärung</Hyperlink>.
|
|
</TextBlock>
|
|
</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=".1*" />
|
|
<ColumnDefinition Width=".2*" />
|
|
<ColumnDefinition Width=".1*" />
|
|
<ColumnDefinition Width=".2*" />
|
|
</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"/>
|
|
<Grid Grid.Column="2" Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width=".5*" />
|
|
<ColumnDefinition Width="30" />
|
|
<ColumnDefinition Width=".5*" />
|
|
</Grid.ColumnDefinitions>
|
|
<ComboBox x:Name="comboBoxSortOrder" Margin="2" Grid.Column="0" SelectionChanged="comboBoxSortOrder_SelectionChanged" />
|
|
<CheckBox x:Name="checkboxShowCancelledCalls" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="2" Checked="checkboxShowCancelledCalls_Checked" Unchecked="checkboxShowCancelledCalls_Checked" />
|
|
<Label Content="{x:Static p:Resources.textShowCancelledShipcalls}" Grid.Column="2" />
|
|
</Grid>
|
|
<Label Content="{x:Static p:Resources.textHarbour}" Grid.Column="3" HorizontalAlignment="Right" />
|
|
<xctk:CheckComboBox x:Name="comboBoxPorts" Margin="2" Grid.Column="4" ItemSelectionChanged="comboBoxPorts_ItemSelectionChanged" DisplayMemberPath="Name" />
|
|
|
|
<Button Margin="2" Grid.Column="6" Content="{x:Static p:Resources.textClearFilters}" x:Name="buttonClearFilter" Click="buttonClearFilter_Click" Background="Transparent" />
|
|
</Grid>
|
|
<Grid Grid.Row="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width=".13*" />
|
|
<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="{Binding Source={x:Static sets:Settings.Default}, Path=BG_COLOR}" Foreground="White" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="1" Background="{Binding Source={x:Static sets:Settings.Default}, Path=BG_COLOR}" Foreground="White" Content="{x:Static p:Resources.textAgency}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="2" Background="{Binding Source={x:Static sets:Settings.Default}, Path=BG_COLOR}" Foreground="White" Content="{x:Static p:Resources.textMooring}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="3" Background="{Binding Source={x:Static sets:Settings.Default}, Path=BG_COLOR}" Foreground="White" Content="{x:Static p:Resources.textPortAuthority}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="4" Background="{Binding Source={x:Static sets:Settings.Default}, Path=BG_COLOR}" Foreground="White" Content="{x:Static p:Resources.textPilots}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="5" Background="{Binding Source={x:Static sets:Settings.Default}, Path=BG_COLOR}" Foreground="White" Content="{x:Static p:Resources.textTug}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" HorizontalContentAlignment="Center"></Label>
|
|
<Label Grid.Column="6" Background="{Binding Source={x:Static sets:Settings.Default}, Path=BG_COLOR}" Foreground="White" Content="{x:Static p:Resources.textTerminal}" 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="80" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="120" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="26" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="26" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="26" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="26" />
|
|
<ColumnDefinition Width="Auto" />
|
|
<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" ToolTip="{x:Static p:Resources.textInfoChangePW}"/>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="7"/>
|
|
<StatusBarItem Grid.Column="8">
|
|
<Button x:Name="buttonHistory" Click="buttonHistory_Click" Width="20" ToolTip="{x:Static p:Resources.textShowHistory}">
|
|
<Image Source="./Resources/clock.png"/>
|
|
</Button>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="9"/>
|
|
<StatusBarItem Grid.Column="10">
|
|
<Button x:Name="buttonNotifications" Click="buttonNotifications_Click" Width="20" ToolTip="{x:Static p:Resources.textShowNotifications}">
|
|
<Image Source="./Resources/bell3.png"/>
|
|
</Button>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="9"/>
|
|
<StatusBarItem Grid.Column="12">
|
|
<TextBlock Name="labelStatusBar"></TextBlock>
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="13"/>
|
|
<StatusBarItem Grid.Column="14">
|
|
<Button x:Name="buttonManualRefresh" Width="20" Click="buttonManualRefresh_Click" ToolTip="{x:Static p:Resources.textTriggerManualRefresh}">
|
|
<Image Source="./Resources/nav_refresh_green.png"/>
|
|
</Button>
|
|
</StatusBarItem>
|
|
<StatusBarItem Grid.Column="15">
|
|
<TextBlock x:Name="labelLatestUpdate" />
|
|
</StatusBarItem>
|
|
<Separator Grid.Column="16"/>
|
|
<StatusBarItem Grid.Column="17">
|
|
<ProgressBar Name="generalProgressStatus" Width="90" Height="16" Foreground="LightGray"/>
|
|
</StatusBarItem>
|
|
</StatusBar>
|
|
</Grid>
|
|
</xctk:BusyIndicator>
|
|
</Window>
|