Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BootstrapErrorPage.xaml.cs
1using CommunityToolkit.Mvvm.Input;
3
5{
9 public partial class BootstrapErrorPage
10 {
14 public BootstrapErrorPage(string TraceTitle, string TraceText)
15 {
16 this.TraceTitle = TraceTitle;
17 this.TraceText = TraceText;
18
19 this.InitializeComponent();
20 this.BindingContext = this;
21 }
22
23 public string TraceTitle { get; set; }
24
25 public string TraceText { get; set; }
26
27 [RelayCommand]
28 public async Task CopyToClipboard()
29 {
30 try
31 {
32 string CopyText = (this.TraceTitle is not null) ? this.TraceTitle : string.Empty;
33
34 if (this.TraceText is not null)
35 {
36 CopyText += "\n\n";
37 CopyText += this.TraceText;
38 }
39
40 await Clipboard.SetTextAsync(CopyText);
41 }
42 catch (Exception ex)
43 {
44 ServiceRef.LogService.LogException(ex);
45 }
46 }
47 }
48}
Base class that references services in the app.
Definition: ServiceRef.cs:31
static ILogService LogService
Log service.
Definition: ServiceRef.cs:91
A page which is displayed when an unexpected exception is encountered during the application startup.
BootstrapErrorPage(string TraceTitle, string TraceText)
Creates a new instance of the BootstrapErrorPage class.