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
4
6{
10 [XamlCompilation(XamlCompilationOptions.Compile)]
11 public partial class ViewContractPage
12 {
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
39 ImagesViewModel.LoadPhotos(Attachments);
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
ViewContractPage()
Creates a new instance of the ViewContractPage class.
The view model to bind to for when displaying contracts.
void LoadPhotos(Attachment[] attachments)
Loads the attachments photos, if there are any.
Contains a reference to an attachment assigned to a legal object.
Definition: Attachment.cs:9
Attachment[] Attachments
Attachments assigned to the legal identity.
Definition: Contract.cs:318