Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NewContractPage.xaml.cs
3
5{
9 [XamlCompilation(XamlCompilationOptions.Skip)]
11 {
12
13 public ScrollView? ScrollView;
18 {
19 this.InitializeComponent();
20 NewContractNavigationArgs? args = ServiceRef.UiService.PopLatestArgs<NewContractNavigationArgs>();
21
22 this.ContentPageModel = new NewContractViewModel(this,args );
23 this.ScrollView = this.MainScrollView;
24
25 Unloaded += (object? sender, EventArgs e) =>
26 {
27 (this.ContentPageModel as IDisposable)?.Dispose();
28 };
29 }
30
35 public async Task ShowContractOptions(IDictionary<CaseInsensitiveString, object>[] Options)
36 {
37 if (this.ContentPageModel is NewContractViewModel ViewModel)
38 await ViewModel.ShowContractOptions(Options);
39 }
40
41 }
42}
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
A page that allows the user to create a new contract.
async Task ShowContractOptions(IDictionary< CaseInsensitiveString, object >[] Options)
Method called (from main thread) when contract options are made available.
NewContractPage()
Creates a new instance of the NewContractPage class.
The view model to bind to when displaying a new contract view or page.
Interface for pages that can receive contract options from an asynchronous process.