This repository has been archived on 2025-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
BreCal/src/BreCalClient
2024-12-05 18:46:04 +01:00
..
Properties Cosmetics and bumped version to 1.7.0.0 2024-12-05 18:46:04 +01:00
Resources Cosmetics and bumped version to 1.7.0.0 2024-12-05 18:46:04 +01:00
.editorconfig Edit and save a shipcall 2023-08-21 15:34:09 +02:00
AboutDialog.xaml Fixed error in validation when not all fields are transmitted. Added UI for Notification flags. 2024-12-05 18:39:28 +01:00
AboutDialog.xaml.cs Fixed error in validation when not all fields are transmitted. Added UI for Notification flags. 2024-12-05 18:39:28 +01:00
App.config reverted settings for test version 2024-09-12 11:31:16 +02:00
App.xaml Calling dialog for outgoing shipcall async to show incoming call asap 2024-04-25 10:36:43 +02:00
App.xaml.cs startup window size sanity check 2024-02-05 16:35:08 +01:00
AssemblyInfo.cs added sample client with sample autogenerated client code 2023-07-11 17:17:27 +02:00
BoolToIndexConverter.cs Edit and save a shipcall 2023-08-21 15:34:09 +02:00
BreCalClient.csproj Cosmetics and bumped version to 1.7.0.0 2024-12-05 18:46:04 +01:00
BreCalClient.licenseheader Change history Part 3 2024-03-29 10:13:23 +01:00
BreCalClient.sln Added simple windows (MSI) installer für project output 2024-06-22 16:27:59 +02:00
BreCalLists.cs Added agency port dependency when editing shipcalls 2024-09-19 09:10:15 +02:00
containership.ico Many little details in the client, added password change dialog 2023-08-18 09:48:37 +02:00
DateTimePickerExt.cs Fixed 4 digit time entry 2024-07-01 13:25:16 +02:00
EditShipcallControl.xaml Avoid harbour selection changed event when initializing dialog 2024-10-19 19:39:03 +02:00
EditShipcallControl.xaml.cs Fixed small bug regarding read only of port combobox 2024-12-04 10:29:20 +01:00
EditShipDialog.xaml Only allow non deleted ships to be selected and safeguard the create ship dialog 2024-04-13 16:00:10 +02:00
EditShipDialog.xaml.cs removed unnecessary float conversion 2024-09-10 21:46:30 +02:00
EditTimesAgencyIncomingControl.xaml Added derived DateTimePicker to use custom keyboard parsing (numbers only) 2024-06-24 14:37:10 +02:00
EditTimesAgencyIncomingControl.xaml.cs fixed some missing client warnings 2024-11-19 12:26:33 +01:00
EditTimesAgencyOutgoingControl.xaml Simplified input text filtering: 2024-07-01 13:22:04 +02:00
EditTimesAgencyOutgoingControl.xaml.cs fixed some missing client warnings 2024-11-19 12:26:33 +01:00
EditTimesAgencyShiftingControl.xaml even more small fixes 2024-07-14 15:12:49 +02:00
EditTimesAgencyShiftingControl.xaml.cs fixed some missing client warnings 2024-11-19 12:26:33 +01:00
EditTimesControl.xaml Added some warnings if time intervals or particular values lie in the past for shipcall and agency 2024-09-09 18:27:03 +02:00
EditTimesControl.xaml.cs fixed some missing client warnings 2024-11-19 12:26:33 +01:00
EditTimesTerminalControl.xaml Reset values button on times and times terminal dialog boxes to completely undo entries. 2024-07-22 08:51:20 +02:00
EditTimesTerminalControl.xaml.cs fixed some missing client warnings 2024-11-19 12:26:33 +01:00
ENIDataGrid.cs Fixed bug where app was accidentally switched to en-us locale by old ENI code 2024-04-25 10:36:13 +02:00
EnumHelper.cs localized the shipcall type combobox selection 2024-04-23 17:39:25 +02:00
Extensions.cs added -1 day time logic to client 2024-11-08 09:35:07 +01:00
HistoryControl.xaml Improved on history display, showing type and eta/etd. 2024-04-10 15:00:35 +02:00
HistoryControl.xaml.cs Improved on history display, showing type and eta/etd. 2024-04-10 15:00:35 +02:00
HistoryDialog.xaml Added history filter for own shipcalls only, added wait cursor for longer reloading ops 2024-04-23 17:40:05 +02:00
HistoryDialog.xaml.cs Added history filter for own shipcalls only, added wait cursor for longer reloading ops 2024-04-23 17:40:05 +02:00
IEditTimesControl.cs Display ETA/ETDs with correct timeref labels now 2024-03-28 09:46:02 +01:00
MainWindow.xaml Added port filter to main screen and allowed port filtering 2024-09-16 14:18:57 +02:00
MainWindow.xaml.cs Cosmetics and bumped version to 1.7.0.0 2024-12-05 18:46:04 +01:00
ReadMe.md Fixed test client setup as a separate setup. 2023-09-13 07:09:52 +02:00
SearchFilterControl.xaml Fix text filter if there is whitespace in the text, simplified some events 2024-10-19 19:57:07 +02:00
SearchFilterControl.xaml.cs Fix text filter if there is whitespace in the text, simplified some events 2024-10-19 19:57:07 +02:00
SearchFilterModel.cs Added port filter to main screen and allowed port filtering 2024-09-16 14:18:57 +02:00
SettingBindingExtension.cs Storing window location and size for main window and all six dialogs 2023-12-26 17:05:16 +01:00
ShipcallControl.xaml Show last change date permanently in the header. Latest value is highlighted 2024-09-20 12:24:59 +02:00
ShipcallControl.xaml.cs If the agency provided a time, display it in the BSMD column. Also corrected ETD/ETA Label right there 2024-11-08 09:59:37 +01:00
ShipcallControlModel.cs If the agency provided a time, display it in the BSMD column. Also corrected ETD/ETA Label right there 2024-11-08 09:59:37 +01:00
ShipListDialog.xaml localized the shipcall type combobox selection 2024-04-23 17:39:25 +02:00
ShipListDialog.xaml.cs Don't crash on ship delete API error 2024-09-09 13:11:56 +02:00
ShipModel.cs Convenience: If creating a new ship fails, the ship is shown again when the dialog is re-opened 2024-08-28 17:35:58 +02:00
Util.cs Ship editing pt. 1 (doesn't compile) 2024-01-14 15:40:00 +01:00

Bremen calling WPF client

Introduction

API / code generation

The Rest API client is generated from the OpenAPI specification BreCalApi.yaml into the C# file BreCalApi.cs. In order to do so an extension for Visual Studio needs to be installed: REST API Client Code Generator for VS 2022.

https://marketplace.visualstudio.com/items?itemName=ChristianResmaHelle.ApiClientCodeGenerator2022

This extension has multiple generators, for this project OpenApiCodeGenerator is used (must be set on the yaml file in the project settings). Internally this uses Java, currently > 55 which translates into Java JDK 17 LTS. If code generation is not working please have a look in the output pane and select appropriate output source.

Installation

The client is deployed via ClickOnce.

To deploy the test client, leave everything as it is in develop branch and publish using the profile ClickOnceTestProfile.pubxml. To deploy the productive version, use the profile ClickOnceProfile.pubxml. You will also need to change the AssemblyName in BreCalClient.csproj back to BreCalClient.

<AssemblyName>BreCalClient</AssemblyName>

Resources are embedded in the assembly. Therefore wherever Resources are referenced via assembly name this name has to be adjusted as well. For example:

this.imageShipcallType.Source = new BitmapImage(new Uri("pack://application:,,,/BreCalClient;component/Resources/arrow_right_green.png"));

It is debatable if the single contained file deployment makes sense at this point. Installation file size is at about 150MB which takes a long time to upload however it should run on any current windows installation. Theoretically it should also work on Linux.

Signing

Currently neither assemblies nor the installation is signed. This probably only makes sense with a paid public code signing certificate.