Esempio n. 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     XmlConfigurator.Configure();
     D2MP.main();
 }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //check to see if we are already running
            string pid = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), D2MP.PIDFile);

            //delete the pid to shut down the other instance
            if (File.Exists(pid))
            {
                File.Delete(pid);
            }

            if (CheckSettings())
            {
                MessageBox.Show("Your user.config file was corrupted and needed to be deleted.\nAll your settings have been reset to default.\nNo further action is required.",
                                "D2Moddin", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            XmlConfigurator.Configure();
            D2MP.main();
        }