static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            SamplerAppContext app = new SamplerAppContext();

            Application.ApplicationExit += app.OnApplicationExit;
            Application.Run(app);
        }
Exemple #2
0
 static void Main()
 {
     try
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         SamplerAppContext app = new SamplerAppContext();
         Application.ApplicationExit += app.OnApplicationExit;
         Application.Run(app);
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }