diff --git a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin index fb01348..26c5f3a 100644 Binary files a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin and b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.metadata.v7.bin differ diff --git a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin index f06cdbe..173a3bc 100644 Binary files a/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin and b/VTOL_2.0.0/.vs/ProjectEvaluation/vtol.projects.v7.bin differ diff --git a/VTOL_2.0.0/.vs/VTOL/DesignTimeBuild/.dtbcache.v2 b/VTOL_2.0.0/.vs/VTOL/DesignTimeBuild/.dtbcache.v2 index a8d45b6..9ab6d9e 100644 Binary files a/VTOL_2.0.0/.vs/VTOL/DesignTimeBuild/.dtbcache.v2 and b/VTOL_2.0.0/.vs/VTOL/DesignTimeBuild/.dtbcache.v2 differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/319d6ec4-90a8-4be8-bf5c-95050fd95c47.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/319d6ec4-90a8-4be8-bf5c-95050fd95c47.vsidx new file mode 100644 index 0000000..1870d9f Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/319d6ec4-90a8-4be8-bf5c-95050fd95c47.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/39a2721a-028e-4e95-beaf-41ad7875535e.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/39a2721a-028e-4e95-beaf-41ad7875535e.vsidx deleted file mode 100644 index 576d376..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/39a2721a-028e-4e95-beaf-41ad7875535e.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/3d209694-7d9d-4e92-a280-6669bac73a2e.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/3d209694-7d9d-4e92-a280-6669bac73a2e.vsidx new file mode 100644 index 0000000..78a7000 Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/3d209694-7d9d-4e92-a280-6669bac73a2e.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/9bba5b2e-62cd-4740-b4e3-09f15c3e02cf.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/9bba5b2e-62cd-4740-b4e3-09f15c3e02cf.vsidx new file mode 100644 index 0000000..fd4198a Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/9bba5b2e-62cd-4740-b4e3-09f15c3e02cf.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/a21ae3c1-7544-4da2-a29f-18d497cbf528.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/a21ae3c1-7544-4da2-a29f-18d497cbf528.vsidx deleted file mode 100644 index 8dfff89..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/a21ae3c1-7544-4da2-a29f-18d497cbf528.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/ab5b635b-b135-4737-bcc1-e3b4acc7370a.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/ab5b635b-b135-4737-bcc1-e3b4acc7370a.vsidx deleted file mode 100644 index 99dab68..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/ab5b635b-b135-4737-bcc1-e3b4acc7370a.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f08253b0-4cea-4338-89b1-ae8bef12f66e.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/d0c454d4-3595-4c44-9566-153164073a4d.vsidx similarity index 87% rename from VTOL_2.0.0/.vs/VTOL/FileContentIndex/f08253b0-4cea-4338-89b1-ae8bef12f66e.vsidx rename to VTOL_2.0.0/.vs/VTOL/FileContentIndex/d0c454d4-3595-4c44-9566-153164073a4d.vsidx index a6882e9..6ca6a90 100644 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/f08253b0-4cea-4338-89b1-ae8bef12f66e.vsidx and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/d0c454d4-3595-4c44-9566-153164073a4d.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/d3f0258f-73da-4e3a-b384-a4b7e461821c.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/d3f0258f-73da-4e3a-b384-a4b7e461821c.vsidx new file mode 100644 index 0000000..d3da762 Binary files /dev/null and b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/d3f0258f-73da-4e3a-b384-a4b7e461821c.vsidx differ diff --git a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/e5b71859-9978-4b16-97a0-d5e5c3a38e3f.vsidx b/VTOL_2.0.0/.vs/VTOL/FileContentIndex/e5b71859-9978-4b16-97a0-d5e5c3a38e3f.vsidx deleted file mode 100644 index 844cd30..0000000 Binary files a/VTOL_2.0.0/.vs/VTOL/FileContentIndex/e5b71859-9978-4b16-97a0-d5e5c3a38e3f.vsidx and /dev/null differ diff --git a/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 b/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 index 84d6412..8e1da3b 100644 Binary files a/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 and b/VTOL_2.0.0/.vs/VTOL/v17/.futdcache.v2 differ diff --git a/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin b/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin index fbd149e..30f4220 100644 Binary files a/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin and b/VTOL_2.0.0/.vs/VTOL/v17/fileList.bin differ diff --git a/VTOL_2.0.0/MainWindow.xaml.cs b/VTOL_2.0.0/MainWindow.xaml.cs index c519963..147fad8 100644 --- a/VTOL_2.0.0/MainWindow.xaml.cs +++ b/VTOL_2.0.0/MainWindow.xaml.cs @@ -144,13 +144,13 @@ private void UserInterfaceCustomScale(double customScale) public MainWindow() { InitializeComponent(); - IntPtr hWnd = new WindowInteropHelper(GetWindow(this)).EnsureHandle(); - var attribute = DWMWINDOWATTRIBUTE.DWMWA_WINDOW_CORNER_PREFERENCE; - var preference = DWM_WINDOW_CORNER_PREFERENCE.DWMWCP_ROUND; - DwmSetWindowAttribute(hWnd, attribute, ref preference, sizeof(uint)); - + try { + IntPtr hWnd = new WindowInteropHelper(GetWindow(this)).EnsureHandle(); + var attribute = DWMWINDOWATTRIBUTE.DWMWA_WINDOW_CORNER_PREFERENCE; + var preference = DWM_WINDOW_CORNER_PREFERENCE.DWMWCP_ROUND; + DwmSetWindowAttribute(hWnd, attribute, ref preference, sizeof(uint)); NotificationManager = new NotificationManager(); minimize_to_tray = Properties.Settings.Default.Minimize_to_Tray; @@ -340,7 +340,7 @@ public MainWindow() catch (Exception ex) { - Log.Error(ex, $"A crash happened at {DateTime.Now.ToString("yyyy - MM - dd HH - mm - ss.ff", CultureInfo.InvariantCulture)}{Environment.NewLine}"); + Console.WriteLine(ex+ $"A crash happened at {DateTime.Now.ToString("yyyy - MM - dd HH - mm - ss.ff", CultureInfo.InvariantCulture)}{Environment.NewLine}"); } diff --git a/VTOL_2.0.0/VTOL.csproj b/VTOL_2.0.0/VTOL.csproj index bf82bf9..deb8109 100644 --- a/VTOL_2.0.0/VTOL.csproj +++ b/VTOL_2.0.0/VTOL.csproj @@ -1,7 +1,7 @@  - WinExe + Exe net6.0-windows10.0.17763.0 enable true