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
1using CommunityToolkit.Maui.Layouts;
6
8{
12 [XamlCompilation(XamlCompilationOptions.Compile)]
13 public partial class ViewContractPage
14 {
19 {
20 this.InitializeComponent();
21
22 StateContainer.SetCurrentState(this.StateGrid, ViewContractStep.Loading.ToString());
23 ViewModel.StateObject = this.StateGrid;
24 this.BindingContext = ViewModel;
25 }
26
28 public override Task OnDisappearingAsync()
29 {
30 return base.OnDisappearingAsync();
31 }
32
33 private void Image_Tapped(object? Sender, EventArgs e)
34 {
35 ViewContractViewModel ViewModel = this.ViewModel<ViewContractViewModel>();
36
37 Attachment[]? Attachments = ViewModel.Contract?.Contract.Attachments;
38 if (Attachments is null)
39 return;
40
42 ImagesViewModel ImagesViewModel = new(Attachments);
43 ImagesPopup.BindingContext = ImagesViewModel;
45 //imagesViewModel.LoadPhotos(Attachments);
46 }
47 }
48}
Base class that references services in the app.
Definition: ServiceRef.cs:43
static IPopupService PopupService
Popup service for presenting application popups.
Definition: ServiceRef.cs:142
ViewContractPage(ViewContractViewModel ViewModel)
Creates a new instance of the ViewContractPage class.
View model for displaying and managing a contract in the "View Contract" page.
Contains a reference to an attachment assigned to a legal object.
Definition: Attachment.cs:10
ViewContractStep
The different steps of creating a new contract.