- Timestamp:
- 08/09/12 11:14:34 (12 years ago)
- Location:
- branches/HeuristicLab.Mono/HeuristicLab.PluginInfrastructure/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Mono/HeuristicLab.PluginInfrastructure/3.3/ErrorHandling/FrameworkVersionErrorDialog.cs
r7259 r8457 26 26 public partial class FrameworkVersionErrorDialog : Form { 27 27 public static bool NET4FullProfileInstalled { 28 get { return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null; } 28 get { 29 try { 30 return Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full") != null; 31 } catch(System.Security.SecurityException) { 32 return false; 33 } 34 } 35 } 36 37 public static bool MonoInstalled { 38 get { return Type.GetType("Mono.Runtime") != null; } 39 } 40 41 public static bool PlatformSupported { 42 get { return MonoInstalled || NET4FullProfileInstalled; } 29 43 } 30 44 -
branches/HeuristicLab.Mono/HeuristicLab.PluginInfrastructure/3.3/Main.cs
r7259 r8457 34 34 /// <param name="args">Command line arguments</param> 35 35 public static void Run(string[] args) { 36 if (!FrameworkVersionErrorDialog. NET4FullProfileInstalled) {36 if (!FrameworkVersionErrorDialog.PlatformSupported) { 37 37 Application.EnableVisualStyles(); 38 38 Application.SetCompatibleTextRenderingDefault(false);
Note: See TracChangeset
for help on using the changeset viewer.