Fix for VS-Express 2012

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2478 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-02-11 22:06:34 +00:00
parent 965676cc3a
commit 3becf11cfd

View file

@ -61,8 +61,7 @@ namespace GreenshotPlugin.Controls {
/// <returns></returns>
protected static bool IsInDesignMode {
get {
return (Application.ExecutablePath.IndexOf("devenv.exe", StringComparison.OrdinalIgnoreCase) > -1)
|| (Application.ExecutablePath.IndexOf("sharpdevelop.exe", StringComparison.OrdinalIgnoreCase) > -1);
return (Application.ExecutablePath.IndexOf("devenv.exe", StringComparison.OrdinalIgnoreCase) > -1) || (Application.ExecutablePath.IndexOf("sharpdevelop.exe", StringComparison.OrdinalIgnoreCase) > -1 || (Application.ExecutablePath.IndexOf("wdexpress.exe", StringComparison.OrdinalIgnoreCase) > -1));
}
}
@ -107,7 +106,8 @@ namespace GreenshotPlugin.Controls {
if (!Language.AddLanguageFilePath(Path.Combine(assemblyDirectory, @"..\..\Languages\"))) {
Language.AddLanguageFilePath(Path.Combine(assemblyDirectory, @"..\..\..\Languages\"));
}
} catch (Exception) {
} catch (Exception ex) {
MessageBox.Show(ex.Message);
}
}
}