While doing so, I have also refactored the shipcall processing logic in the main window. All changes now go through the filter and sorting stage before all controls are removed and only the controls matching to the sorted list are added to the stack panel. |
||
|---|---|---|
| .. | ||
| Properties | ||
| Resources | ||
| .editorconfig | ||
| AboutDialog.xaml | ||
| AboutDialog.xaml.cs | ||
| App.config | ||
| App.xaml | ||
| App.xaml.cs | ||
| AssemblyInfo.cs | ||
| BoolToIndexConverter.cs | ||
| BreCalClient.csproj | ||
| BreCalClient.licenseheader | ||
| BreCalClient.sln | ||
| containership.ico | ||
| EditShipcallControl.xaml | ||
| EditShipcallControl.xaml.cs | ||
| EditTimesControl.xaml | ||
| EditTimesControl.xaml.cs | ||
| Extensions.cs | ||
| MainWindow.xaml | ||
| MainWindow.xaml.cs | ||
| ReadMe.md | ||
| SearchFilterControl.xaml | ||
| SearchFilterControl.xaml.cs | ||
| SearchFilterModel.cs | ||
| ShipcallControl.xaml | ||
| ShipcallControl.xaml.cs | ||
| ShipcallControlModel.cs | ||
| ShipcallExtraControl.xaml | ||
| ShipcallExtraControl.xaml.cs | ||
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.