-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.xaml.cs
More file actions
50 lines (46 loc) · 1.42 KB
/
Copy pathApp.xaml.cs
File metadata and controls
50 lines (46 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System;
using System.IO;
using System.Linq;
using System.Windows;
using System.Windows.Threading;
namespace Verdict;
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
static App()
{
try
{
System.IO.File.WriteAllText(@"C:\Users\charlesp\Verdict\bin\Debug\net9.0-windows\app_startup.log", "STATIC_CTOR_OK");
}
catch (Exception ex)
{
System.IO.File.WriteAllText(@"C:\Users\charlesp\Verdict\bin\Debug\net9.0-windows\app_error.log", $"STATIC_CTOR_FAIL:{ex.Message}");
}
}
public App()
{
try
{
System.IO.File.WriteAllText(@"C:\Users\charlesp\Verdict\bin\Debug\net9.0-windows\app_startup.log", "INSTANCE_CTOR_OK");
}
catch (Exception ex)
{
System.IO.File.WriteAllText(@"C:\Users\charlesp\Verdict\bin\Debug\net9.0-windows\app_error.log", $"INSTANCE_CTOR_FAIL:{ex.Message}");
}
}
protected override void OnStartup(StartupEventArgs e)
{
try
{
System.IO.File.WriteAllText(@"C:\Users\charlesp\Verdict\bin\Debug\net9.0-windows\app_startup.log", "ONSTARTUP_OK");
}
catch (Exception ex)
{
System.IO.File.WriteAllText(@"C:\Users\charlesp\Verdict\bin\Debug\net9.0-windows\app_error.log", $"ONSTARTUP_FAIL:{ex.Message}");
}
base.OnStartup(e);
}
}