Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BaseShowInfoViewModel.cs
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using CommunityToolkit.Mvvm.Input;
8
10{
12 {
13 private string infoTitle = "";
14
15 public string InfoTitle
16 {
17 get => this.infoTitle;
18 set
19 {
20 if (value == this.infoTitle) return;
21 this.infoTitle = value;
22 this.OnPropertyChanged();
23 }
24 }
25
26 private string infoText = "";
27
28 public string InfoText
29 {
30 get => this.infoText;
31 set
32 {
33 if (value == this.infoText) return;
34 this.infoText = value;
35 this.OnPropertyChanged();
36 }
37 }
38
39 public BaseShowInfoViewModel(string infoTitle, string infoText)
40 {
41 this.InfoTitle = infoTitle;
42 this.InfoText = infoText;
43 }
44
45 public BaseShowInfoViewModel() { }
46
47 [RelayCommand]
48 public void Close()
49 {
50 ServiceRef.UiService.PopAsync();
51 }
52 }
53}
Base class that references services in the app.
Definition: ServiceRef.cs:31
static IUiService UiService
Service serializing and managing UI-related tasks.
Definition: ServiceRef.cs:55