diff --git a/src/BreCalClient/EditShipcallControl.xaml b/src/BreCalClient/EditShipcallControl.xaml
index c3d7b79..fb25afc 100644
--- a/src/BreCalClient/EditShipcallControl.xaml
+++ b/src/BreCalClient/EditShipcallControl.xaml
@@ -32,15 +32,16 @@
-
+
-
+
-
+
-
+
+
diff --git a/src/BreCalClient/EditShipcallControl.xaml.cs b/src/BreCalClient/EditShipcallControl.xaml.cs
index 8d578e6..5ac812d 100644
--- a/src/BreCalClient/EditShipcallControl.xaml.cs
+++ b/src/BreCalClient/EditShipcallControl.xaml.cs
@@ -31,6 +31,12 @@ namespace BreCalClient
}
}
+ public bool ShipEditingEnabled
+ {
+ get { return this.buttonEditShips.Visibility == Visibility.Visible; }
+ set { this.buttonEditShips.Visibility = value ? Visibility.Visible : Visibility.Hidden; }
+ }
+
#endregion
#region Event handler
@@ -341,6 +347,11 @@ namespace BreCalClient
private void comboBoxDepartureBerth_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
this.CheckForCompletion();
+ }
+
+ private void buttonEditShips_Click(object sender, RoutedEventArgs e)
+ {
+
}
#endregion
diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs
index c0a681e..611450f 100644
--- a/src/BreCalClient/MainWindow.xaml.cs
+++ b/src/BreCalClient/MainWindow.xaml.cs
@@ -207,7 +207,10 @@ namespace BreCalClient
private void NewWithModel(ShipcallControlModel? model)
{
- EditShipcallControl esc = new();
+ EditShipcallControl esc = new()
+ {
+ ShipEditingEnabled = App.Participant.IsTypeFlagSet(Extensions.ParticipantType.BSMD)
+ };
if (model != null)
esc.ShipcallModel = model;
@@ -662,7 +665,8 @@ namespace BreCalClient
{
EditShipcallControl esc = new()
{
- ShipcallModel = obj.ShipcallControlModel
+ ShipcallModel = obj.ShipcallControlModel,
+ ShipEditingEnabled = App.Participant.IsTypeFlagSet(Extensions.ParticipantType.BSMD)
};
if(esc.ShowDialog() ?? false)
diff --git a/src/BreCalClient/Resources/Resources.Designer.cs b/src/BreCalClient/Resources/Resources.Designer.cs
index fd945c5..177c3c7 100644
--- a/src/BreCalClient/Resources/Resources.Designer.cs
+++ b/src/BreCalClient/Resources/Resources.Designer.cs
@@ -436,6 +436,15 @@ namespace BreCalClient.Resources {
}
}
+ ///
+ /// Looks up a localized string similar to Edit ships.
+ ///
+ public static string textEditShips {
+ get {
+ return ResourceManager.GetString("textEditShips", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Edit times.
///
diff --git a/src/BreCalClient/Resources/Resources.de.resx b/src/BreCalClient/Resources/Resources.de.resx
index fcd4530..ce0a5dc 100644
--- a/src/BreCalClient/Resources/Resources.de.resx
+++ b/src/BreCalClient/Resources/Resources.de.resx
@@ -427,4 +427,7 @@
Steuerbord
+
+ Schiffe anlegen / bearbeiten
+
\ No newline at end of file
diff --git a/src/BreCalClient/Resources/Resources.resx b/src/BreCalClient/Resources/Resources.resx
index fde0244..2f7bfc1 100644
--- a/src/BreCalClient/Resources/Resources.resx
+++ b/src/BreCalClient/Resources/Resources.resx
@@ -238,6 +238,9 @@
Edit ship call
+
+ Edit ships
+
Edit times