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
puls200 d74f943994 Fixed test client setup as a separate setup.
Please see ReadMe.md in the BreCalClient folder for details.
2023-09-13 07:09:52 +02:00
..
Properties Fixed test client setup as a separate setup. 2023-09-13 07:09:52 +02:00
Resources Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
.editorconfig Edit and save a shipcall 2023-08-21 15:34:09 +02:00
AboutDialog.xaml add confirmation dialog if password was changed successfully 2023-09-04 12:28:58 +02:00
AboutDialog.xaml.cs Changing Password is functional through API and Client 2023-08-18 15:29:20 +02:00
App.config Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
App.xaml Client very WIP und Fehlerkorrektur API 2023-08-08 07:43:47 +02:00
App.xaml.cs added times controlling but no functions 2023-08-21 19:11:23 +02: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 test client setup as a separate setup. 2023-09-13 07:09:52 +02:00
BreCalClient.licenseheader Shipcall list now working with traffic light on bound property, data from server 2023-07-27 12:55:39 +02:00
BreCalClient.sln Select participants on edit shipcall control 2023-08-16 12:16:08 +02:00
containership.ico Many little details in the client, added password change dialog 2023-08-18 09:48:37 +02:00
EditShipcallControl.xaml If an agency allows BSMD entries, then the flag is set and the dialog controls are enabled 2023-09-06 09:04:30 +02:00
EditShipcallControl.xaml.cs If an agency allows BSMD entries, then the flag is set and the dialog controls are enabled 2023-09-06 09:04:30 +02:00
EditTimesControl.xaml Fixed adding and removing assignments of participants and berths 2023-09-04 12:12:07 +02:00
EditTimesControl.xaml.cs If an agency allows BSMD entries, then the flag is set and the dialog controls are enabled 2023-09-06 09:04:30 +02:00
Extensions.cs Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
MainWindow.xaml Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
MainWindow.xaml.cs Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
ReadMe.md Fixed test client setup as a separate setup. 2023-09-13 07:09:52 +02:00
SearchFilterControl.xaml Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
SearchFilterControl.xaml.cs Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
SearchFilterModel.cs Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
ShipcallControl.xaml extended times and use flags on participant, added code to have a test version of the client 2023-09-05 16:38:40 +02:00
ShipcallControl.xaml.cs Fixed test client setup as a separate setup. 2023-09-13 07:09:52 +02:00
ShipcallControlModel.cs Added filtering and sorting to shipcalls in the list. 2023-09-12 16:48:28 +02:00
ShipcallExtraControl.xaml Herunterklappbares Shipcall Control, angefangen 2023-08-04 08:33:01 +02:00
ShipcallExtraControl.xaml.cs Herunterklappbares Shipcall Control, angefangen 2023-08-04 08:33:01 +02: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.