Mockup der Suche, Lokalisierung hinzugefügt (statisch via Resources)
This commit is contained in:
parent
9a735898ba
commit
d44dbcc437
BIN
misc/logo_bremen_calling.png
Normal file
BIN
misc/logo_bremen_calling.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
@ -24,6 +24,7 @@
|
|||||||
<None Remove="Resources\clock.png" />
|
<None Remove="Resources\clock.png" />
|
||||||
<None Remove="Resources\containership.png" />
|
<None Remove="Resources\containership.png" />
|
||||||
<None Remove="Resources\emergency_stop_button.png" />
|
<None Remove="Resources\emergency_stop_button.png" />
|
||||||
|
<None Remove="Resources\logo_bremen_calling.png" />
|
||||||
<None Remove="Resources\ship2.png" />
|
<None Remove="Resources\ship2.png" />
|
||||||
<None Remove="Resources\trafficlight_green.png" />
|
<None Remove="Resources\trafficlight_green.png" />
|
||||||
<None Remove="Resources\trafficlight_off.png" />
|
<None Remove="Resources\trafficlight_off.png" />
|
||||||
@ -63,6 +64,7 @@
|
|||||||
<Resource Include="Resources\clock.png" />
|
<Resource Include="Resources\clock.png" />
|
||||||
<Resource Include="Resources\containership.png" />
|
<Resource Include="Resources\containership.png" />
|
||||||
<Resource Include="Resources\emergency_stop_button.png" />
|
<Resource Include="Resources\emergency_stop_button.png" />
|
||||||
|
<Resource Include="Resources\logo_bremen_calling.png" />
|
||||||
<Resource Include="Resources\ship2.png" />
|
<Resource Include="Resources\ship2.png" />
|
||||||
<Resource Include="Resources\StringResources.de.xaml">
|
<Resource Include="Resources\StringResources.de.xaml">
|
||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
@ -98,7 +100,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedResource Update="Resources\Resources.resx">
|
<EmbeddedResource Update="Resources\Resources.resx">
|
||||||
<Generator>ResXFileCodeGenerator</Generator>
|
<Generator>PublicResXFileCodeGenerator</Generator>
|
||||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:local="clr-namespace:BreCalClient"
|
xmlns:local="clr-namespace:BreCalClient"
|
||||||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||||
|
xmlns:p = "clr-namespace:BreCalClient.Resources"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="{DynamicResource textApplicationTitle}" Height="450" Width="800" Loaded="Window_Loaded" Closing="Window_Closing">
|
Title="{DynamicResource textApplicationTitle}" Height="450" Width="800" Loaded="Window_Loaded" Closing="Window_Closing">
|
||||||
|
|
||||||
@ -27,14 +28,14 @@
|
|||||||
<ColumnDefinition Width="1*" />
|
<ColumnDefinition Width="1*" />
|
||||||
<ColumnDefinition Width="1*" />
|
<ColumnDefinition Width="1*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Label Content="{DynamicResource textLoginCaption}" Grid.Row="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
<Label Content="{x:Static p:Resources.textUserlogin}" Grid.Row="0" Grid.ColumnSpan="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
||||||
<Label Content="{DynamicResource textUsername}" Grid.Row="1" VerticalContentAlignment="Center" />
|
<Label Content="{x:Static p:Resources.textUsername}" Grid.Row="1" VerticalContentAlignment="Center" />
|
||||||
<Label Content="{DynamicResource textPassword}" Grid.Row="2" 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" />
|
<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="*"/>
|
<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" />
|
<Label Name="labelLoginResult" Grid.Row="3" Grid.ColumnSpan="2" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
|
||||||
<Button Name="buttonLogin" Content="{DynamicResource textLogin}" Grid.Row="4" Grid.Column="0" Margin="2" Click="buttonLogin_Click" IsDefault="True" />
|
<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="{DynamicResource textExit}" Grid.Row="4" Grid.Column="1" Margin="2" Click="buttonExit_Click" />
|
<Button Name="buttonExit" Content="{x:Static p:Resources.textExit}" Grid.Row="4" Grid.Column="1" Margin="2" Click="buttonExit_Click" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</xctk:BusyIndicator.BusyContent>
|
</xctk:BusyIndicator.BusyContent>
|
||||||
<Grid>
|
<Grid>
|
||||||
@ -42,13 +43,15 @@
|
|||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="56" />
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
<RowDefinition Height="28" />
|
<RowDefinition Height="28" />
|
||||||
</Grid.RowDefinitions>
|
</Grid.RowDefinitions>
|
||||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
<local:SearchFilterControl Grid.Row="0" x:Name="searchFilterControl" />
|
||||||
|
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
|
||||||
<StackPanel x:Name="stackPanel"/>
|
<StackPanel x:Name="stackPanel"/>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
<StatusBar Grid.Row="1">
|
<StatusBar Grid.Row="2">
|
||||||
<StatusBar.ItemsPanel>
|
<StatusBar.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<Grid>
|
<Grid>
|
||||||
|
|||||||
@ -110,12 +110,17 @@ namespace BreCalClient
|
|||||||
this._berths = await _api.BerthsGetAsync();
|
this._berths = await _api.BerthsGetAsync();
|
||||||
foreach(var berth in this._berths)
|
foreach(var berth in this._berths)
|
||||||
_berthLookupDict[berth.Id] = berth;
|
_berthLookupDict[berth.Id] = berth;
|
||||||
|
this.searchFilterControl.SetBerths(this._berths);
|
||||||
this._ships = await _api.ShipsGetAsync();
|
this._ships = await _api.ShipsGetAsync();
|
||||||
foreach(var ship in this._ships)
|
foreach(var ship in this._ships)
|
||||||
_shipLookupDict[ship.Id] = ship;
|
_shipLookupDict[ship.Id] = ship;
|
||||||
this._participants = await _api.ParticipantGetAsync();
|
this._participants = await _api.ParticipantGetAsync();
|
||||||
foreach(Participant participant in this._participants)
|
List<Participant> agencies = new List<Participant>();
|
||||||
|
foreach (Participant participant in this._participants)
|
||||||
|
{
|
||||||
this._participantLookupDict[participant.Id] = participant;
|
this._participantLookupDict[participant.Id] = participant;
|
||||||
|
|
||||||
|
}
|
||||||
_ = Task.Run(() => RefreshShipcalls());
|
_ = Task.Run(() => RefreshShipcalls());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
224
src/BreCalClient/Resources/Resources.Designer.cs
generated
224
src/BreCalClient/Resources/Resources.Designer.cs
generated
@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
namespace BreCalClient.Resources {
|
namespace BreCalClient.Resources {
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -22,21 +22,21 @@ namespace BreCalClient.Resources {
|
|||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
public class Resources {
|
||||||
|
|
||||||
private static global::System.Resources.ResourceManager resourceMan;
|
private static global::System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||||
internal Resources() {
|
internal Resources() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the cached ResourceManager instance used by this class.
|
/// Returns the cached ResourceManager instance used by this class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
public static global::System.Resources.ResourceManager ResourceManager {
|
||||||
get {
|
get {
|
||||||
if (object.ReferenceEquals(resourceMan, null)) {
|
if (object.ReferenceEquals(resourceMan, null)) {
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BreCalClient.Resources.Resources", typeof(Resources).Assembly);
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BreCalClient.Resources.Resources", typeof(Resources).Assembly);
|
||||||
@ -45,13 +45,13 @@ namespace BreCalClient.Resources {
|
|||||||
return resourceMan;
|
return resourceMan;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Overrides the current thread's CurrentUICulture property for all
|
/// Overrides the current thread's CurrentUICulture property for all
|
||||||
/// resource lookups using this strongly typed resource class.
|
/// resource lookups using this strongly typed resource class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
internal static global::System.Globalization.CultureInfo Culture {
|
public static global::System.Globalization.CultureInfo Culture {
|
||||||
get {
|
get {
|
||||||
return resourceCulture;
|
return resourceCulture;
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ namespace BreCalClient.Resources {
|
|||||||
resourceCulture = value;
|
resourceCulture = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -69,7 +69,7 @@ namespace BreCalClient.Resources {
|
|||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -79,27 +79,27 @@ namespace BreCalClient.Resources {
|
|||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] arrow_right_blue {
|
public static byte[] arrow_right_blue {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("arrow_right_blue", resourceCulture);
|
object obj = ResourceManager.GetObject("arrow_right_blue", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] arrow_up_green {
|
public static byte[] arrow_up_green {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("arrow_up_green", resourceCulture);
|
object obj = ResourceManager.GetObject("arrow_up_green", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -109,7 +109,7 @@ namespace BreCalClient.Resources {
|
|||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -119,131 +119,267 @@ namespace BreCalClient.Resources {
|
|||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] clock {
|
public static byte[] clock {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("clock", resourceCulture);
|
object obj = ResourceManager.GetObject("clock", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] containership {
|
public static byte[] containership {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("containership", resourceCulture);
|
object obj = ResourceManager.GetObject("containership", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] emergency_stop_button {
|
public static byte[] emergency_stop_button {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("emergency_stop_button", resourceCulture);
|
object obj = ResourceManager.GetObject("emergency_stop_button", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] ship2 {
|
public static byte[] logo_bremen_calling {
|
||||||
|
get {
|
||||||
|
object obj = ResourceManager.GetObject("logo_bremen_calling", resourceCulture);
|
||||||
|
return ((byte[])(obj));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
|
/// </summary>
|
||||||
|
public static byte[] ship2 {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("ship2", resourceCulture);
|
object obj = ResourceManager.GetObject("ship2", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Agencies.
|
||||||
|
/// </summary>
|
||||||
|
public static string textAgencies {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textAgencies", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Berths.
|
||||||
|
/// </summary>
|
||||||
|
public static string textBerths {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textBerths", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Categories.
|
||||||
|
/// </summary>
|
||||||
|
public static string textCategories {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textCategories", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Enter keyword.
|
||||||
|
/// </summary>
|
||||||
|
public static string textEnterKeyword {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textEnterKeyword", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Exit.
|
||||||
|
/// </summary>
|
||||||
|
public static string textExit {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textExit", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to from.
|
||||||
|
/// </summary>
|
||||||
|
public static string textFrom {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textFrom", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Interval.
|
||||||
|
/// </summary>
|
||||||
|
public static string textInterval {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textInterval", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Login.
|
||||||
|
/// </summary>
|
||||||
|
public static string textLogin {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textLogin", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Password.
|
||||||
|
/// </summary>
|
||||||
|
public static string textPassword {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textPassword", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Search.
|
||||||
|
/// </summary>
|
||||||
|
public static string textSearch {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textSearch", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Ship length.
|
||||||
|
/// </summary>
|
||||||
|
public static string textShipLength {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textShipLength", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to to.
|
||||||
|
/// </summary>
|
||||||
|
public static string textTo {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textTo", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to User login.
|
||||||
|
/// </summary>
|
||||||
|
public static string textUserlogin {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textUserlogin", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to User name.
|
||||||
|
/// </summary>
|
||||||
|
public static string textUsername {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("textUsername", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] trafficlight_green {
|
public static byte[] trafficlight_green {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("trafficlight_green", resourceCulture);
|
object obj = ResourceManager.GetObject("trafficlight_green", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] trafficlight_off {
|
public static byte[] trafficlight_off {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("trafficlight_off", resourceCulture);
|
object obj = ResourceManager.GetObject("trafficlight_off", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] trafficlight_on {
|
public static byte[] trafficlight_on {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("trafficlight_on", resourceCulture);
|
object obj = ResourceManager.GetObject("trafficlight_on", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] trafficlight_red {
|
public static byte[] trafficlight_red {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("trafficlight_red", resourceCulture);
|
object obj = ResourceManager.GetObject("trafficlight_red", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] trafficlight_red_yellow {
|
public static byte[] trafficlight_red_yellow {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("trafficlight_red_yellow", resourceCulture);
|
object obj = ResourceManager.GetObject("trafficlight_red_yellow", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] trafficlight_yellow {
|
public static byte[] trafficlight_yellow {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("trafficlight_yellow", resourceCulture);
|
object obj = ResourceManager.GetObject("trafficlight_yellow", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] umbrella_closed {
|
public static byte[] umbrella_closed {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("umbrella_closed", resourceCulture);
|
object obj = ResourceManager.GetObject("umbrella_closed", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] umbrella_open {
|
public static byte[] umbrella_open {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("umbrella_open", resourceCulture);
|
object obj = ResourceManager.GetObject("umbrella_open", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized resource of type System.Byte[].
|
/// Looks up a localized resource of type System.Byte[].
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal static byte[] worker2 {
|
public static byte[] worker2 {
|
||||||
get {
|
get {
|
||||||
object obj = ResourceManager.GetObject("worker2", resourceCulture);
|
object obj = ResourceManager.GetObject("worker2", resourceCulture);
|
||||||
return ((byte[])(obj));
|
return ((byte[])(obj));
|
||||||
|
|||||||
217
src/BreCalClient/Resources/Resources.de.resx
Normal file
217
src/BreCalClient/Resources/Resources.de.resx
Normal file
@ -0,0 +1,217 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<root>
|
||||||
|
<!--
|
||||||
|
Microsoft ResX Schema
|
||||||
|
|
||||||
|
Version 2.0
|
||||||
|
|
||||||
|
The primary goals of this format is to allow a simple XML format
|
||||||
|
that is mostly human readable. The generation and parsing of the
|
||||||
|
various data types are done through the TypeConverter classes
|
||||||
|
associated with the data types.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
... ado.net/XML headers & schema ...
|
||||||
|
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||||
|
<resheader name="version">2.0</resheader>
|
||||||
|
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||||
|
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||||
|
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||||
|
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||||
|
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||||
|
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||||
|
</data>
|
||||||
|
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
|
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||||
|
<comment>This is a comment</comment>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
There are any number of "resheader" rows that contain simple
|
||||||
|
name/value pairs.
|
||||||
|
|
||||||
|
Each data row contains a name, and value. The row also contains a
|
||||||
|
type or mimetype. Type corresponds to a .NET class that support
|
||||||
|
text/value conversion through the TypeConverter architecture.
|
||||||
|
Classes that don't support this are serialized and stored with the
|
||||||
|
mimetype set.
|
||||||
|
|
||||||
|
The mimetype is used for serialized objects, and tells the
|
||||||
|
ResXResourceReader how to depersist the object. This is currently not
|
||||||
|
extensible. For a given mimetype the value must be set accordingly:
|
||||||
|
|
||||||
|
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||||
|
that the ResXResourceWriter will generate, however the reader can
|
||||||
|
read any of the formats listed below.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.binary.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.soap.base64
|
||||||
|
value : The object must be serialized with
|
||||||
|
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
|
||||||
|
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||||
|
value : The object must be serialized into a byte array
|
||||||
|
: using a System.ComponentModel.TypeConverter
|
||||||
|
: and then encoded with base64 encoding.
|
||||||
|
-->
|
||||||
|
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||||
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:choice maxOccurs="unbounded">
|
||||||
|
<xsd:element name="metadata">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="assembly">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:attribute name="alias" type="xsd:string" />
|
||||||
|
<xsd:attribute name="name" type="xsd:string" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="data">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||||
|
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||||
|
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||||
|
<xsd:attribute ref="xml:space" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
<xsd:element name="resheader">
|
||||||
|
<xsd:complexType>
|
||||||
|
<xsd:sequence>
|
||||||
|
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||||
|
</xsd:sequence>
|
||||||
|
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:choice>
|
||||||
|
</xsd:complexType>
|
||||||
|
</xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>2.0</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</resheader>
|
||||||
|
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||||
|
<data name="arrow_down_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>arrow_down_red.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="arrow_right_blue" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>arrow_right_blue.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="arrow_up_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>arrow_up_green.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="clipboard" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>clipboard.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="clock" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>clock.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="containership" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>containership.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="emergency_stop_button" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>emergency_stop_button.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="logo_bremen_calling" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>logo_bremen_calling.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="ship2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>ship2.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="textAgencies" xml:space="preserve">
|
||||||
|
<value>Agenturen</value>
|
||||||
|
</data>
|
||||||
|
<data name="textBerths" xml:space="preserve">
|
||||||
|
<value>Liegeplätze</value>
|
||||||
|
</data>
|
||||||
|
<data name="textCategories" xml:space="preserve">
|
||||||
|
<value>Kategorien</value>
|
||||||
|
</data>
|
||||||
|
<data name="textEnterKeyword" xml:space="preserve">
|
||||||
|
<value>Suchbegriff eingeben</value>
|
||||||
|
</data>
|
||||||
|
<data name="textExit" xml:space="preserve">
|
||||||
|
<value>Verlassen</value>
|
||||||
|
</data>
|
||||||
|
<data name="textFrom" xml:space="preserve">
|
||||||
|
<value>von</value>
|
||||||
|
</data>
|
||||||
|
<data name="textInterval" xml:space="preserve">
|
||||||
|
<value>Zeitraum</value>
|
||||||
|
</data>
|
||||||
|
<data name="textLogin" xml:space="preserve">
|
||||||
|
<value>Anmelden</value>
|
||||||
|
</data>
|
||||||
|
<data name="textPassword" xml:space="preserve">
|
||||||
|
<value>Passwort</value>
|
||||||
|
</data>
|
||||||
|
<data name="textSearch" xml:space="preserve">
|
||||||
|
<value>Suche</value>
|
||||||
|
</data>
|
||||||
|
<data name="textShipLength" xml:space="preserve">
|
||||||
|
<value>Schiffslänge</value>
|
||||||
|
</data>
|
||||||
|
<data name="textTo" xml:space="preserve">
|
||||||
|
<value>bis</value>
|
||||||
|
</data>
|
||||||
|
<data name="textUserlogin" xml:space="preserve">
|
||||||
|
<value>Anmeldung</value>
|
||||||
|
</data>
|
||||||
|
<data name="textUsername" xml:space="preserve">
|
||||||
|
<value>Benutzername</value>
|
||||||
|
</data>
|
||||||
|
<data name="trafficlight_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>trafficlight_green.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="trafficlight_off" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>trafficlight_off.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="trafficlight_on" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>trafficlight_on.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="trafficlight_red" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>trafficlight_red.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="trafficlight_red_yellow" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>trafficlight_red_yellow.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="trafficlight_yellow" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>trafficlight_yellow.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="umbrella_closed" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>umbrella_closed.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="umbrella_open" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>umbrella_open.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
<data name="worker2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>worker2.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
@ -145,9 +145,54 @@
|
|||||||
<data name="emergency_stop_button" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="emergency_stop_button" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>emergency_stop_button.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>emergency_stop_button.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="logo_bremen_calling" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
|
<value>logo_bremen_calling.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
|
</data>
|
||||||
<data name="ship2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="ship2" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>ship2.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>ship2.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="textAgencies" xml:space="preserve">
|
||||||
|
<value>Agencies</value>
|
||||||
|
</data>
|
||||||
|
<data name="textBerths" xml:space="preserve">
|
||||||
|
<value>Berths</value>
|
||||||
|
</data>
|
||||||
|
<data name="textCategories" xml:space="preserve">
|
||||||
|
<value>Categories</value>
|
||||||
|
</data>
|
||||||
|
<data name="textEnterKeyword" xml:space="preserve">
|
||||||
|
<value>Enter keyword</value>
|
||||||
|
</data>
|
||||||
|
<data name="textExit" xml:space="preserve">
|
||||||
|
<value>Exit</value>
|
||||||
|
</data>
|
||||||
|
<data name="textFrom" xml:space="preserve">
|
||||||
|
<value>from</value>
|
||||||
|
</data>
|
||||||
|
<data name="textInterval" xml:space="preserve">
|
||||||
|
<value>Interval</value>
|
||||||
|
</data>
|
||||||
|
<data name="textLogin" xml:space="preserve">
|
||||||
|
<value>Login</value>
|
||||||
|
</data>
|
||||||
|
<data name="textPassword" xml:space="preserve">
|
||||||
|
<value>Password</value>
|
||||||
|
</data>
|
||||||
|
<data name="textSearch" xml:space="preserve">
|
||||||
|
<value>Search</value>
|
||||||
|
</data>
|
||||||
|
<data name="textShipLength" xml:space="preserve">
|
||||||
|
<value>Ship length</value>
|
||||||
|
</data>
|
||||||
|
<data name="textTo" xml:space="preserve">
|
||||||
|
<value>to</value>
|
||||||
|
</data>
|
||||||
|
<data name="textUserlogin" xml:space="preserve">
|
||||||
|
<value>User login</value>
|
||||||
|
</data>
|
||||||
|
<data name="textUsername" xml:space="preserve">
|
||||||
|
<value>User name</value>
|
||||||
|
</data>
|
||||||
<data name="trafficlight_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
<data name="trafficlight_green" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||||
<value>trafficlight_green.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>trafficlight_green.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
BIN
src/BreCalClient/Resources/logo_bremen_calling.png
Normal file
BIN
src/BreCalClient/Resources/logo_bremen_calling.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
81
src/BreCalClient/SearchFilterControl.xaml
Normal file
81
src/BreCalClient/SearchFilterControl.xaml
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
<UserControl x:Class="BreCalClient.SearchFilterControl"
|
||||||
|
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:p = "clr-namespace:BreCalClient.Resources"
|
||||||
|
xmlns:local="clr-namespace:BreCalClient"
|
||||||
|
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="56" d:DesignWidth="800">
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
<RowDefinition Height="28" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<!-- Logo -->
|
||||||
|
<Image Grid.Column="0" Grid.RowSpan="2" x:Name="logoImage" Source="Resources/logo_bremen_calling.png" Stretch="Fill" MouseUp="logoImage_MouseUp" Margin="0"/>
|
||||||
|
|
||||||
|
<!-- Labels -->
|
||||||
|
<Label Grid.Row="0" Grid.Column="1">
|
||||||
|
<TextBlock>
|
||||||
|
<TextBlock.Text>
|
||||||
|
<MultiBinding StringFormat="{}{0} {1}">
|
||||||
|
<Binding Source="{x:Static p:Resources.textInterval}" />
|
||||||
|
<Binding Source="{x:Static p:Resources.textFrom}" />
|
||||||
|
</MultiBinding>
|
||||||
|
</TextBlock.Text>
|
||||||
|
</TextBlock>
|
||||||
|
</Label>
|
||||||
|
<Label Grid.Row="0" Grid.Column="3" Content="{x:Static p:Resources.textCategories}" />
|
||||||
|
<Label Grid.Row="0" Grid.Column="5">
|
||||||
|
<TextBlock>
|
||||||
|
<TextBlock.Text>
|
||||||
|
<MultiBinding StringFormat="{}{0} {1}">
|
||||||
|
<Binding Source="{x:Static p:Resources.textShipLength}" />
|
||||||
|
<Binding Source="{x:Static p:Resources.textFrom}" />
|
||||||
|
</MultiBinding>
|
||||||
|
</TextBlock.Text>
|
||||||
|
</TextBlock>
|
||||||
|
</Label>
|
||||||
|
<Label Grid.Row="1" Grid.Column="1" Content="{x:Static p:Resources.textSearch}" />
|
||||||
|
<Label Grid.Row="1" Grid.Column="3" Content="{x:Static p:Resources.textBerths}" />
|
||||||
|
<Label Grid.Row="1" Grid.Column="5" Content="{x:Static p:Resources.textAgencies}" />
|
||||||
|
|
||||||
|
<!-- Filter input controls -->
|
||||||
|
<Grid Grid.Column="2" Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width=".5*" />
|
||||||
|
<ColumnDefinition Width="30" />
|
||||||
|
<ColumnDefinition Width=".5*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<DatePicker x:Name="datePickerETAFrom" Grid.Column="0" Margin="2" />
|
||||||
|
<Label Grid.Column="1" Content="{x:Static p:Resources.textTo}" />
|
||||||
|
<DatePicker x:Name="datePickerETATo" Grid.Column="2" Margin="2" />
|
||||||
|
</Grid>
|
||||||
|
<xctk:CheckComboBox x:Name="comboBoxCategories" Grid.Column="4" Margin="2" />
|
||||||
|
<Grid Grid.Column="6" Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width=".5*" />
|
||||||
|
<ColumnDefinition Width="30" />
|
||||||
|
<ColumnDefinition Width=".5*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<xctk:DoubleUpDown x:Name="upDownShiplengthFrom" Grid.Column="0" Margin="2" Minimum="0" Maximum="1000" />
|
||||||
|
<Label Grid.Column="1" Content="{x:Static p:Resources.textTo}" />
|
||||||
|
<xctk:DoubleUpDown x:Name="upDownShiplengthTo" Grid.Column="2" Margin="2" Minimum="0" Maximum="1000"/>
|
||||||
|
</Grid>
|
||||||
|
<xctk:WatermarkTextBox x:Name="textBoxSearch" Grid.Column="2" Grid.Row="1" Margin="2" Watermark="{x:Static p:Resources.textEnterKeyword}" />
|
||||||
|
<xctk:CheckComboBox x:Name="comboBoxBerths" Grid.Column="4" Grid.Row="1" Margin="2" />
|
||||||
|
<xctk:CheckComboBox x:Name="comboBoxAgencies" Grid.Column="6" Grid.Row="1" Margin="2" />
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
||||||
63
src/BreCalClient/SearchFilterControl.xaml.cs
Normal file
63
src/BreCalClient/SearchFilterControl.xaml.cs
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
// Copyright (c) 2023 schick Informatik
|
||||||
|
// Description: Search filter bar for top window, generates events if filter criteria change
|
||||||
|
//
|
||||||
|
|
||||||
|
using BreCalClient.misc.Model;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Input;
|
||||||
|
|
||||||
|
namespace BreCalClient
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for SearchFilterControl.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class SearchFilterControl : UserControl
|
||||||
|
{
|
||||||
|
|
||||||
|
#region Construction
|
||||||
|
|
||||||
|
public SearchFilterControl()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region events
|
||||||
|
|
||||||
|
public event Action? LogoImageClicked;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Properties
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region public methods
|
||||||
|
|
||||||
|
public void SetBerths(List<Berth> berths)
|
||||||
|
{
|
||||||
|
this.comboBoxBerths.ItemsSource = berths;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetAgencies(List<Participant> agencies)
|
||||||
|
{
|
||||||
|
this.comboBoxAgencies.ItemsSource = agencies;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region event handler
|
||||||
|
|
||||||
|
private void logoImage_MouseUp(object sender, MouseButtonEventArgs e)
|
||||||
|
{
|
||||||
|
if (LogoImageClicked != null) LogoImageClicked();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
36
src/BreCalClient/SearchFilterModel.cs
Normal file
36
src/BreCalClient/SearchFilterModel.cs
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
// Copyright (c) 2023 schick Informatik
|
||||||
|
// Description: Data model for search filters
|
||||||
|
//
|
||||||
|
|
||||||
|
using BreCalClient.misc.Model;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace BreCalClient
|
||||||
|
{
|
||||||
|
internal class SearchFilterModel
|
||||||
|
{
|
||||||
|
public SearchFilterModel() { }
|
||||||
|
|
||||||
|
#region Properties
|
||||||
|
|
||||||
|
public DateTime? EtaFrom { get; set; }
|
||||||
|
|
||||||
|
public DateTime? EtaTo { get; set; }
|
||||||
|
|
||||||
|
public IEnumerable<int>? Categories { get; set; }
|
||||||
|
|
||||||
|
public IEnumerable<Participant>? Agencies { get; set; }
|
||||||
|
|
||||||
|
public IEnumerable<Berth>? Berths { get; set; }
|
||||||
|
|
||||||
|
public string? SearchString { get; set; }
|
||||||
|
|
||||||
|
public double? ShipLengthFrom { get; set; }
|
||||||
|
|
||||||
|
public double? ShipLengthTo { get; set; }
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -4,6 +4,7 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:local="clr-namespace:BreCalClient"
|
xmlns:local="clr-namespace:BreCalClient"
|
||||||
|
xmlns:p = "clr-namespace:BreCalClient.Resources"
|
||||||
xmlns:db="clr-namespace:BreCalClient;assembly=BreCalClient"
|
xmlns:db="clr-namespace:BreCalClient;assembly=BreCalClient"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DesignHeight="100" d:DesignWidth="800" Loaded="UserControl_Loaded">
|
d:DesignHeight="100" d:DesignWidth="800" Loaded="UserControl_Loaded">
|
||||||
|
|||||||
Reference in New Issue
Block a user