|
@@ -1,6 +1,8 @@
|
|
|
using System;
|
|
using System;
|
|
|
|
|
+using System.Diagnostics;
|
|
|
using System.Diagnostics.Eventing.Reader;
|
|
using System.Diagnostics.Eventing.Reader;
|
|
|
using System.Globalization;
|
|
using System.Globalization;
|
|
|
|
|
+using System.Reflection;
|
|
|
using System.Text;
|
|
using System.Text;
|
|
|
using System.Windows;
|
|
using System.Windows;
|
|
|
using System.Windows.Controls;
|
|
using System.Windows.Controls;
|
|
@@ -77,7 +79,19 @@ public partial class MainWindow : Window
|
|
|
private void TimerTicked(object? sender, EventArgs e)
|
|
private void TimerTicked(object? sender, EventArgs e)
|
|
|
{
|
|
{
|
|
|
SetTime();
|
|
SetTime();
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ private void DoClick(object sender, MouseButtonEventArgs e)
|
|
|
|
|
+ {
|
|
|
|
|
+ var path = System.IO.Path.GetDirectoryName(new System.Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);
|
|
|
|
|
+ if (!string.IsNullOrEmpty(path))
|
|
|
|
|
+ {
|
|
|
|
|
+ Process.Start("explorer.exe", path);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
}
|
|
}
|