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
1
using
CommunityToolkit.Mvvm.Input;
2
using
NeuroAccessMaui.Services
;
3
4
namespace
NeuroAccessMaui.UI.Pages.Main
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
}
NeuroAccessMaui.Services.ServiceRef
Base class that references services in the app.
Definition:
ServiceRef.cs:31
NeuroAccessMaui.Services.ServiceRef.LogService
static ILogService LogService
Log service.
Definition:
ServiceRef.cs:91
NeuroAccessMaui.UI.Pages.Main.BootstrapErrorPage
A page which is displayed when an unexpected exception is encountered during the application startup.
Definition:
BootstrapErrorPage.xaml.cs:10
NeuroAccessMaui.UI.Pages.Main.BootstrapErrorPage.BootstrapErrorPage
BootstrapErrorPage(string TraceTitle, string TraceText)
Creates a new instance of the BootstrapErrorPage class.
Definition:
BootstrapErrorPage.xaml.cs:14
NeuroAccessMaui.Services
Definition:
PlatformSpecific.cs:26
NeuroAccessMaui.UI.Pages.Main
Definition:
AppShell.xaml.cs:50
NeuroAccessMaui
NeuroAccessMaui
UI
Pages
Main
BootstrapErrorPage.xaml.cs
Generated by
1.9.5