Sylvain LC's Blog

A GitHub blog, usefull to me, hope the same for you.

WPF application

To demonstrate a new WPF component for my work, I followed a tutorial available on YouTube.

SingletonSean - Models - WPF MVVM TUTORIAL #1

Below the domain presented in the video.

I used Mermaid to build this diagram.

::: mermaid classDiagram Hotel “1” –> “1” ReservationBook : owns ReservationBook “1” –> “*” Reservation : registers Reservation “1” –> “1” RoomID : for :::

C# Diagram

::: mermaid classDiagram class MyViewModel { - string Property1 - string Property2 + void SubmitCommand() + void CancelCommand() } class SubmitCommand { + void Execute() + bool CanExecute() } class CancelCommand { + void Execute() + bool CanExecute() } class NavigationStore { - MyViewModel CurrentViewModel } MyViewModel “1” –> “1” SubmitCommand : uses MyViewModel “1” –> “1” CancelCommand : uses NavigationStore “1” –> “1” MyViewModel : holds :::