9 [XamlCompilation(XamlCompilationOptions.Compile)]
18 this.Title = ViewModel.Title;
19 this.ContentPageModel = ViewModel;
21 this.InitializeComponent();
24 private void ContractsSelectionChanged(
object? Sender, SelectionChangedEventArgs e)
28 object SelectedItem = this.Contracts.SelectedItem;
30 if (SelectedItem is HeaderModel Category)
32 Category.Expanded = !Category.Expanded;
39 if (Contract.HasEvents)
42 else if (SelectedItem is EventModel Event)
45 this.Contracts.SelectedItem =
null;
Base class that references services in the app.
static IUiService UiService
Service serializing and managing UI-related tasks.
static INotificationService NotificationService
Service for managing notifications for the user.
Holds navigation parameters specific to views displaying a list of contacts.
A page that displays a list of the current user's contracts.
MyContractsPage()
Creates a new instance of the MyContractsPage class.
The view model to bind to when displaying 'my' contracts.
void ContractSelected(string ContractId)
Add or remove the contracts from the collection
void AddOrRemoveContracts(HeaderModel Category, bool Expanded)
Add or remove the contracts from the collection
The data model for a contract.