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-04-08 13:59:11 +02:00
..
Properties Fixed window layout positions 2024-04-03 10:12:54 +02:00
Resources Added Tooltip for fixed order button in edit dialog 2024-04-08 13:59:11 +02:00
.editorconfig Edit and save a shipcall 2023-08-21 15:34:09 +02:00
AboutDialog.xaml Open all dialogs at the same stored position 2023-12-28 11:20:09 +01:00
AboutDialog.xaml.cs Allow changes of users phone and email contact info by the user 2023-10-26 16:29:17 +02:00
App.config Fixed window layout positions 2024-04-03 10:12:54 +02:00
App.xaml startup window size sanity check 2024-02-05 16:35:08 +01: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 Fixed orders part 1 2024-03-29 19:28:41 +01:00
BreCalClient.licenseheader Change history Part 3 2024-03-29 10:13:23 +01:00
BreCalClient.sln Select participants on edit shipcall control 2023-08-16 12:16:08 +02:00
BreCalLists.cs Display ETA/ETDs with correct timeref labels now 2024-03-28 09:46:02 +01:00
containership.ico Many little details in the client, added password change dialog 2023-08-18 09:48:37 +02:00
EditShipcallControl.xaml Display ETA/ETDs with correct timeref labels now 2024-03-28 09:46:02 +01:00
EditShipcallControl.xaml.cs Display ETA/ETDs with correct timeref labels now 2024-03-28 09:46:02 +01:00
EditShipDialog.xaml Fixed window layout positions 2024-04-03 10:12:54 +02:00
EditShipDialog.xaml.cs fixed some bugs in the dialog, but still cannot save a ship 2024-01-15 16:02:27 +01:00
EditTimesAgencyIncomingControl.xaml Increased dialog width to allow start/end times to be fully seen. Also include end time(!) only in overview (if available) 2024-04-03 19:34:07 +02:00
EditTimesAgencyIncomingControl.xaml.cs Expanded all dialogs to include end times for eta, etd and operations 2024-04-03 11:29:07 +02:00
EditTimesAgencyOutgoingControl.xaml Increased dialog width to allow start/end times to be fully seen. Also include end time(!) only in overview (if available) 2024-04-03 19:34:07 +02:00
EditTimesAgencyOutgoingControl.xaml.cs Expanded all dialogs to include end times for eta, etd and operations 2024-04-03 11:29:07 +02:00
EditTimesAgencyShiftingControl.xaml Increased dialog width to allow start/end times to be fully seen. Also include end time(!) only in overview (if available) 2024-04-03 19:34:07 +02:00
EditTimesAgencyShiftingControl.xaml.cs Expanded all dialogs to include end times for eta, etd and operations 2024-04-03 11:29:07 +02:00
EditTimesControl.xaml Increased dialog width to allow start/end times to be fully seen. Also include end time(!) only in overview (if available) 2024-04-03 19:34:07 +02:00
EditTimesControl.xaml.cs Added Tooltip for fixed order button in edit dialog 2024-04-08 13:59:11 +02:00
EditTimesTerminalControl.xaml Increased dialog width to allow start/end times to be fully seen. Also include end time(!) only in overview (if available) 2024-04-03 19:34:07 +02:00
EditTimesTerminalControl.xaml.cs Expanded all dialogs to include end times for eta, etd and operations 2024-04-03 11:29:07 +02:00
ENIDataGrid.cs Ship editing pt. 1 (doesn't compile) 2024-01-14 15:40:00 +01:00
Extensions.cs Increased dialog width to allow start/end times to be fully seen. Also include end time(!) only in overview (if available) 2024-04-03 19:34:07 +02:00
HistoryControl.xaml Change history Part 3 2024-03-29 10:13:23 +01:00
HistoryControl.xaml.cs Change history Part 3 2024-03-29 10:13:23 +01:00
HistoryDialog.xaml Fixed window layout positions 2024-04-03 10:12:54 +02:00
HistoryDialog.xaml.cs Change history Part 3 2024-03-29 10:13:23 +01:00
IEditTimesControl.cs Display ETA/ETDs with correct timeref labels now 2024-03-28 09:46:02 +01:00
MainWindow.xaml Change history Part 1 2024-03-28 16:36:45 +01:00
MainWindow.xaml.cs Added Filter flag (checkbox) to select only shipcalls the users participant is assigned to 2024-03-29 11:05:48 +01:00
ReadMe.md Fixed test client setup as a separate setup. 2023-09-13 07:09:52 +02:00
SearchFilterControl.xaml Added Filter flag (checkbox) to select only shipcalls the users participant is assigned to 2024-03-29 11:05:48 +01:00
SearchFilterControl.xaml.cs Added Filter flag (checkbox) to select only shipcalls the users participant is assigned to 2024-03-29 11:05:48 +01:00
SearchFilterModel.cs Added Filter flag (checkbox) to select only shipcalls the users participant is assigned to 2024-03-29 11:05:48 +01: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 Fixed ATA / ATD setting for mooring company 2024-04-02 15:31:12 +02:00
ShipcallControl.xaml.cs Increased dialog width to allow start/end times to be fully seen. Also include end time(!) only in overview (if available) 2024-04-03 19:34:07 +02:00
ShipcallControlModel.cs now the code is compiling. Yaml file documented via description tags. 2024-01-13 19:09:49 +01:00
ShipListDialog.xaml Fixed window layout positions 2024-04-03 10:12:54 +02:00
ShipListDialog.xaml.cs fixed some bugs in the dialog, but still cannot save a ship 2024-01-15 16:02:27 +01:00
ShipModel.cs fixed some bugs in the dialog, but still cannot save a ship 2024-01-15 16:02:27 +01: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.