Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ContractUpdatedNotificationEvent.cs
5using System.Text;
8
10{
15 {
20 : base()
21 {
22 }
23
30 : base(Contract, e)
31 {
32 }
33
37 public override async Task Open()
38 {
39 Contract? Contract = await this.GetContract();
40 if (Contract is not null)
41 {
42 ViewContractNavigationArgs Args = new(Contract, false);
43
45 }
46 }
47
51 public override async Task<string> GetDescription()
52 {
53 Contract? Contract = await this.GetContract();
54 if (Contract is null)
55 return string.Empty;
56
57 StringBuilder Result = new();
58
60
61 if (Contract is not null)
62 {
63 Result.Append(": ");
64 Result.Append(await ContractModel.GetCategory(Contract));
65 }
66
67 Result.Append('.');
68
69 return Result.ToString();
70 }
71 }
72}
A strongly-typed resource class, for looking up localized strings, etc.
static string ContractUpdateReceived
Looks up a localized string similar to Contract updated.
ContractUpdatedNotificationEvent(Contract Contract, ContractReferenceEventArgs e)
Notification event for when a contract has been updated.
override async Task< string > GetDescription()
Gets a descriptive text for the category of event.
ContractUpdatedNotificationEvent()
Notification event for when a contract has been updated.
Base class that references services in the app.
Definition: ServiceRef.cs:43
static INavigationService NavigationService
The navigation service for navigating between pages.
Definition: ServiceRef.cs:178
static IReportingStringLocalizer Localizer
Localization service
Definition: ServiceRef.cs:370
static async Task< string?> GetCategory(Contract Contract)
Gets the category of a contract
Contains the definition of a contract
Definition: Contract.cs:22
Task GoToAsync(string Route)
Navigates to the specified route and pushes the page onto the navigation stack.
BackMethod
Navigation Back Method
Definition: BackMethod.cs:7