Восстанавливаемся при повторном запуске

This commit is contained in:
Danil Kislov
2019-03-22 16:16:57 +03:00
parent a97bb39103
commit 8f4e344449
6 changed files with 80 additions and 33 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
using JiraTimeBot.UI.Tray;
namespace JiraTimeBot
{
@@ -25,7 +26,7 @@ namespace JiraTimeBot
}
else
{
MessageBox.Show("Another instance of the app is already running.");
SingleInstance.ShowFirstInstance();
}
}
}