Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PetitionContractPage.xaml.cs
1using System.ComponentModel;
6{
10 [DesignTimeVisible(true)]
11 public partial class PetitionContractPage
12 {
17 {
18 this.ContentPageModel = new PetitionContractViewModel(ServiceRef.UiService.PopLatestArgs<PetitionContractNavigationArgs>());
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 if (this.ContentPageModel is PetitionContractViewModel PetitionContractViewModel)
31 {
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 }
43}
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
Holds navigation parameters specific to views displaying a contract petition request.
A page to display when the user is asked to petition a contract.
PetitionContractPage()
Creates a new instance of the PetitionContractPage class.
The view model to bind to when displaying petitioning of a contract in a view or page.
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