diff --git a/ENI2/DetailRootControl.xaml.cs b/ENI2/DetailRootControl.xaml.cs index c431ae30..df7a3bfa 100644 --- a/ENI2/DetailRootControl.xaml.cs +++ b/ENI2/DetailRootControl.xaml.cs @@ -178,6 +178,7 @@ namespace ENI2 { this._listBoxList.Add(new MessageGroup() { MessageGroupName = Properties.Resources.textOverview, MessageGroupControlType = typeof(OverViewDetailControl), ImagePath = "Resources/documents.png" }); this._listBoxList.Add(new MessageGroup() { MessageGroupName = Properties.Resources.text1Voyage, MessageGroupControlType = typeof(VoyageControl), ImagePath = "Resources/ship2.png" }); + this._listBoxList.Add(new MessageGroup() { MessageGroupName = Properties.Resources.text2PortCall, MessageGroupControlType = typeof(PortControl), ImagePath = "Resources/anchor.png" }); } this.listBoxMessages.ItemsSource = this._listBoxList; diff --git a/ENI2/DetailViewControls/PSC72hDetailControl.xaml.cs b/ENI2/DetailViewControls/PSC72hDetailControl.xaml.cs index 702f8041..937e37ad 100644 --- a/ENI2/DetailViewControls/PSC72hDetailControl.xaml.cs +++ b/ENI2/DetailViewControls/PSC72hDetailControl.xaml.cs @@ -18,13 +18,13 @@ namespace ENI2.DetailViewControls private Message _pre72hMessage; - private static string[] hullConfiguration = { + private static readonly string[] hullConfiguration = { Properties.Resources.textSingleHull, Properties.Resources.textSingleHullBallast, Properties.Resources.textDoubleHull }; - private static string[] conditionCargoTanks = + private static readonly string[] conditionCargoTanks = { Properties.Resources.textFull, Properties.Resources.textEmpty, diff --git a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs index 0b632902..50e82680 100644 --- a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs +++ b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs @@ -416,7 +416,7 @@ namespace ENI2.DetailViewControls private void CheckServiceEntryMaerskBHV() { bool found = false; - foreach(SERV serv in this._servMessage.Elements) + foreach(SERV serv in _servMessage.Elements.Cast()) { if (serv.ServiceBeneficiary.Equals("Maersk A/S, Esplanaden 50, DK-1263 Copenhagen K, VAT-ID: DK53139655")) found = true; @@ -439,7 +439,7 @@ namespace ENI2.DetailViewControls private void CheckServiceEntrySeaGoBHV() { bool found = false; - foreach (SERV serv in this._servMessage.Elements) + foreach (SERV serv in _servMessage.Elements.Cast()) { if (serv.ServiceBeneficiary.Equals("Sealand Europe A/S, Dampfaergevej 10, 3.tv, DK- 2100 Copenhagen, VAT-ID: DK53139655")) found = true; @@ -462,7 +462,7 @@ namespace ENI2.DetailViewControls private void CheckServiceEntryHoegh() { bool found = false; - foreach (SERV serv in this._servMessage.Elements) + foreach (SERV serv in _servMessage.Elements.Cast()) { if (serv.ServiceBeneficiary.Equals("Höegh Autoliners AS, Oslo, Norway")) found = true; @@ -485,7 +485,7 @@ namespace ENI2.DetailViewControls private void CheckServiceEntryFctJunge() { bool found = false; - foreach (SERV serv in this._servMessage.Elements) + foreach (SERV serv in _servMessage.Elements.Cast()) { if (serv.ServiceName.Equals("Fct Junge - Hamburg")) found = true; @@ -508,7 +508,7 @@ namespace ENI2.DetailViewControls private void CheckServiceEntryElbeBulk() { bool found = false; - foreach (SERV serv in this._servMessage.Elements) + foreach (SERV serv in _servMessage.Elements.Cast()) { if (serv.ServiceName.Equals("Elbe Bulk Schiffe - Hamburg")) found = true; diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj index d8fcf8ec..1e49dfc4 100644 --- a/ENI2/ENI2.csproj +++ b/ENI2/ENI2.csproj @@ -493,6 +493,9 @@ True Reference.svcmap + + PortControl.xaml + VoyageControl.xaml @@ -805,6 +808,10 @@ MainWindow.xaml Code + + Designer + MSBuild:Compile + Designer MSBuild:Compile diff --git a/ENI2/Properties/Resources.Designer.cs b/ENI2/Properties/Resources.Designer.cs index 6cdb7d4d..2c61a66a 100644 --- a/ENI2/Properties/Resources.Designer.cs +++ b/ENI2/Properties/Resources.Designer.cs @@ -938,6 +938,96 @@ namespace ENI2.Properties { } } + /// + /// Looks up a localized string similar to 2.1 Reference numbers. + /// + public static string text21ReferenceNumbers { + get { + return ResourceManager.GetString("text21ReferenceNumbers", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.2 Port operations. + /// + public static string text22PortOperations { + get { + return ResourceManager.GetString("text22PortOperations", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.3 Agency. + /// + public static string text23Agency { + get { + return ResourceManager.GetString("text23Agency", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.4 Invoice (concerning mooring fees, disposal costs etc.). + /// + public static string text24Invoice { + get { + return ResourceManager.GetString("text24Invoice", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.5 Cargo on board related to incoming journey. + /// + public static string text25CargeOnBoard { + get { + return ResourceManager.GetString("text25CargeOnBoard", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.6 Cargo handled in port of call (cargo to discharge / load / transiting). + /// + public static string text26CargoPort { + get { + return ResourceManager.GetString("text26CargoPort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.7 Waste (MARPOL) data. + /// + public static string text27Waste { + get { + return ResourceManager.GetString("text27Waste", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.8 Store information. + /// + public static string text28Store { + get { + return ResourceManager.GetString("text28Store", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2.9 IMO crew effects declaration (IMO FAL form 4). + /// + public static string text29CrewEffects { + get { + return ResourceManager.GetString("text29CrewEffects", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to 2. Port call. + /// + public static string text2PortCall { + get { + return ResourceManager.GetString("text2PortCall", resourceCulture); + } + } + /// /// Looks up a localized string similar to About ENI-2. /// @@ -3269,6 +3359,15 @@ namespace ENI2.Properties { } } + /// + /// Looks up a localized string similar to Location on board. + /// + public static string textLocationOnBoard { + get { + return ResourceManager.GetString("textLocationOnBoard", resourceCulture); + } + } + /// /// Looks up a localized string similar to Lock. /// @@ -3728,6 +3827,15 @@ namespace ENI2.Properties { } } + /// + /// Looks up a localized string similar to Official use. + /// + public static string textOfficialUse { + get { + return ResourceManager.GetString("textOfficialUse", resourceCulture); + } + } + /// /// Looks up a localized string similar to This only works if the grid is empty!. /// @@ -4286,6 +4394,15 @@ namespace ENI2.Properties { } } + /// + /// Looks up a localized string similar to Quantity unit. + /// + public static string textQuantityUnit { + get { + return ResourceManager.GetString("textQuantityUnit", resourceCulture); + } + } + /// /// Looks up a localized string similar to Check status. /// @@ -4898,6 +5015,15 @@ namespace ENI2.Properties { } } + /// + /// Looks up a localized string similar to Store. + /// + public static string textStore { + get { + return ResourceManager.GetString("textStore", resourceCulture); + } + } + /// /// Looks up a localized string similar to Stowage position. /// @@ -5439,7 +5565,7 @@ namespace ENI2.Properties { } /// - /// Looks up a localized string similar to Voyage. + /// Looks up a localized string similar to 1. Voyage. /// public static string textVoyage { get { diff --git a/ENI2/Properties/Resources.resx b/ENI2/Properties/Resources.resx index 2b26ba5a..3589e214 100644 --- a/ENI2/Properties/Resources.resx +++ b/ENI2/Properties/Resources.resx @@ -1913,7 +1913,7 @@ This will delete all entries. Are you sure? - Voyage + 1. Voyage 1.1 Previous port @@ -1960,4 +1960,46 @@ 1. Voyage + + 2. Port call + + + 2.1 Reference numbers + + + 2.2 Port operations + + + 2.3 Agency + + + 2.4 Invoice (concerning mooring fees, disposal costs etc.) + + + 2.5 Cargo on board related to incoming journey + + + 2.6 Cargo handled in port of call (cargo to discharge / load / transiting) + + + 2.7 Waste (MARPOL) data + + + 2.8 Store information + + + 2.9 IMO crew effects declaration (IMO FAL form 4) + + + Store + + + Quantity unit + + + Location on board + + + Official use + \ No newline at end of file diff --git a/ENI2/SheetDisplayControls/PortControl.xaml b/ENI2/SheetDisplayControls/PortControl.xaml new file mode 100644 index 00000000..cc69c225 --- /dev/null +++ b/ENI2/SheetDisplayControls/PortControl.xaml @@ -0,0 +1,406 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +