We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d76645 commit 38c9677Copy full SHA for 38c9677
1 file changed
CutCode/Views/NotificationDialogView.xaml.cs
@@ -13,6 +13,7 @@
13
using System.Windows.Media;
14
using System.Windows.Media.Imaging;
15
using System.Windows.Shapes;
16
+using System.Windows.Threading;
17
18
namespace CutCode
19
{
@@ -38,8 +39,15 @@ public NotificationDialogView()
38
39
Top = mainView.Top + mainView.Height - (Height + 10);
40
Left = mainView.Left + mainView.Width - (Width + 10);
41
}
42
+
43
+ var closeTimer = new DispatcherTimer
44
+ {
45
+ Interval = TimeSpan.FromSeconds(3),
46
+ IsEnabled = true
47
+ };
48
+ closeTimer.Tick += exitBtnClick;
49
50
- private void exitBtnClick(object sender, RoutedEventArgs e) => Close();
51
+ private void exitBtnClick(object sender, EventArgs e) => Close();
52
53
0 commit comments