Darien Figueroa / Mbed 2 deprecated repo3

Dependencies:   mbed MAX14720 MAX30205 USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Program.cs Source File

Program.cs

00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Windows.Forms;
00005 
00006 namespace HealthSensorPlatform
00007 {
00008     static class Program
00009     {
00010         /// <summary>
00011         /// The main entry point for the application.
00012         /// </summary>
00013         [STAThread]
00014         static void Main()
00015         {
00016             if (Environment.OSVersion.Version.Major >= 6)
00017                 SetProcessDPIAware();
00018 
00019             Application.EnableVisualStyles();
00020             Application.SetCompatibleTextRenderingDefault(false);
00021             Application.Run(new HspForm());
00022         }
00023 
00024         [System.Runtime.InteropServices.DllImport("user32.dll")]
00025         private static extern bool SetProcessDPIAware();
00026     }
00027 }