TestDotNetCapability() public static method

public static TestDotNetCapability ( ) : void
return void
コード例 #1
0
 public static void Main(String[] args)
 {
     try
     {
         Util.TestDotNetCapability();
     }
     catch (Exception e)
     {
         String message = ".NET Version 3.5 is required.";
         LogStartupError(message, e);
         MessageBox.Show(message);
         Environment.Exit(1);
     }
     try
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         SetupForm setupForm = new SetupForm(new Setup());
         Application.Run(setupForm);
     }
     catch (Exception e)
     {
         LogStartupError(null, e);
     }
 }
コード例 #2
0
ファイル: Setup.cs プロジェクト: xuxx09/resin
        public static void Main(String[] args)
        {
            try {
                Util.TestDotNetCapability();
            } catch (Exception) {
                MessageBox.Show(".NET Version 3.5 is required.");
                Environment.Exit(1);
            }
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SetupForm setupForm = new SetupForm(new Setup());

            Application.Run(setupForm);
        }