Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ViewContractPage.xaml.cs
1
using
NeuroAccessMaui.Services
;
2
using
NeuroAccessMaui.UI.Popups.Image
;
3
using
Waher.Networking.XMPP.Contracts
;
4
5
namespace
NeuroAccessMaui.UI.Pages.Contracts.ViewContract
6
{
10
[XamlCompilation(XamlCompilationOptions.Compile)]
11
public
partial class
ViewContractPage
12
{
16
public
ViewContractPage
()
17
{
18
this.ContentPageModel =
new
ViewContractViewModel
(
ServiceRef
.
UiService
.PopLatestArgs<ViewContractNavigationArgs>());
19
this.InitializeComponent();
20
}
21
23
protected
override
Task
OnDisappearingAsync
()
24
{
25
return
base.OnDisappearingAsync();
26
}
27
28
private
void
Image_Tapped(
object
? Sender, EventArgs e)
29
{
30
ViewContractViewModel
ViewModel = this.ViewModel<ViewContractViewModel>();
31
32
Attachment
[]? Attachments = ViewModel.
Contract
?.
Attachments
;
33
if
(Attachments is
null
)
34
return
;
35
36
ImagesPopup
ImagesPopup
=
new
();
37
ImagesViewModel
ImagesViewModel
=
new
();
38
ServiceRef
.
UiService
.PushAsync(
ImagesPopup
,
ImagesViewModel
);
39
ImagesViewModel
.
LoadPhotos
(Attachments);
40
}
41
}
42
}
NeuroAccessMaui.Services.ServiceRef
Base class that references services in the app.
Definition:
ServiceRef.cs:31
NeuroAccessMaui.Services.ServiceRef.UiService
static IUiService UiService
Service serializing and managing UI-related tasks.
Definition:
ServiceRef.cs:55
NeuroAccessMaui.UI.Pages.Contracts.ViewContract.ViewContractPage
A page that displays a specific contract.
Definition:
ViewContractPage.xaml.cs:12
NeuroAccessMaui.UI.Pages.Contracts.ViewContract.ViewContractPage.OnDisappearingAsync
override Task OnDisappearingAsync()
Definition:
ViewContractPage.xaml.cs:23
NeuroAccessMaui.UI.Pages.Contracts.ViewContract.ViewContractPage.ViewContractPage
ViewContractPage()
Creates a new instance of the ViewContractPage class.
Definition:
ViewContractPage.xaml.cs:16
NeuroAccessMaui.UI.Pages.Contracts.ViewContract.ViewContractViewModel
The view model to bind to for when displaying contracts.
Definition:
ViewContractViewModel.cs:25
NeuroAccessMaui.UI.Pages.Contracts.ViewContract.ViewContractViewModel.Contract
Contract? Contract
The contract to display.
Definition:
ViewContractViewModel.cs:288
NeuroAccessMaui.UI.Popups.Image.ImagesPopup
Definition:
ImagesPopup.xaml.cs:5
NeuroAccessMaui.UI.Popups.Image.ImagesViewModel
Definition:
ImagesViewModel.cs:13
NeuroAccessMaui.UI.Popups.Image.ImagesViewModel.LoadPhotos
void LoadPhotos(Attachment[] attachments)
Loads the attachments photos, if there are any.
Definition:
ImagesViewModel.cs:37
Waher.Networking.XMPP.Contracts.Attachment
Contains a reference to an attachment assigned to a legal object.
Definition:
Attachment.cs:9
Waher.Networking.XMPP.Contracts.Contract.Attachments
Attachment[] Attachments
Attachments assigned to the legal identity.
Definition:
Contract.cs:318
NeuroAccessMaui.Services
Definition:
PlatformSpecific.cs:26
NeuroAccessMaui.UI.Pages.Contracts.ViewContract
Definition:
ViewContractNavigationArgs.cs:5
NeuroAccessMaui.UI.Popups.Image
Definition:
ImagesPopup.xaml.cs:2
Waher.Networking.XMPP.Contracts
Definition:
Attachment.cs:4
NeuroAccessMaui
NeuroAccessMaui
UI
Pages
Contracts
ViewContract
ViewContractPage.xaml.cs
Generated by
1.9.5