Add detailed comments and app flow documentation for BlazorWasm

Added comprehensive inline comments (mainly in German) to key files (index.html, Program.cs, App.razor, MainLayout.razor, NavMenu.razor, Catalogs.razor, CatalogApiClient.cs) to clarify their roles and the overall application flow. Updated Home.razor with a clearer heading and intro. Introduced Ablauf.cs, which documents the loading order and responsibilities of each major component. These changes enhance codebase clarity and maintainability, especially for German-speaking developers.
This commit is contained in:
OlgunR
2026-01-28 15:03:52 +01:00
parent 05964eb02e
commit 98b841196e
9 changed files with 152 additions and 36 deletions

View File

@@ -1,3 +1,6 @@
@* Stellt die Catalog-Verwaltung bereit.
Nutzt CatalogApiClient für API-Interaktionen und DevExpress-Komponenten für die Benutzeroberfläche. *@
@page "/catalogs"
@inject CatalogApiClient Api
@@ -111,6 +114,9 @@ else
private async Task LoadCatalogs()
{
// Lädt die Liste der Kataloge aus der API.
// Setzt Ladezustand und behandelt Fehler.
isLoading = true;
errorMessage = null;
try
@@ -155,6 +161,9 @@ else
private async Task HandleSubmit()
{
// Behandelt das Absenden des Formulars.
// Führt entweder eine Aktualisierung oder das Anlegen eines neuen Eintrags durch.
errorMessage = null;
infoMessage = null;
@@ -201,6 +210,9 @@ else
private async Task DeleteCatalog(int id)
{
// Löscht einen Katalogeintrag basierend auf der ID.
// Aktualisiert die Liste nach erfolgreichem Löschen.
errorMessage = null;
infoMessage = null;

View File

@@ -2,6 +2,6 @@
<PageTitle>Home</PageTitle>
<h1>Hello, world!</h1>
<h1>Db First approach</h1>
Welcome to your new app.
This is a Blazor WebAssembly application demonstrating the Database First approach using DevExpress components.