michalx2 2014-09-11 00:01:51 +02:00
parent 30f4644eb1
commit 6dd4192d37

View file

@ -270,7 +270,12 @@ private static void Main(string[] args)
applicationBase.Startup += StartupHandler;
applicationBase.StartupNextInstance += StartupNextInstanceHandler;
applicationBase.Shutdown += ShutdownHandler;
applicationBase.Run(Arguments);
try {
applicationBase.Run(Arguments);
}
catch (CantStartSingleInstanceException) {
MessageBox.Show("Couldn't launch the application.");
}
}
private static void StartupHandler(object sender, StartupEventArgs e)