Esempio n. 1
0
        public static void Main()
        {
            NumberFormatInfo nfi = new NumberFormatInfo
            {
                NumberGroupSeparator = "."
            };
            CultureInfo cci = new CultureInfo(1049)
            {
                NumberFormat = nfi
            };

            CultureInfo.CurrentCulture = cci;

            if (File.Exists("settings.xml"))
            {
                Particle.Settings = ParticleSettings.LoadXml();
            }
            else if (File.Exists("settings.bin"))
            {
                Particle.Settings = ParticleSettings.LoadBin();
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new MainForm(AppDomain.CurrentDomain.FriendlyName.EndsWith(".scr", StringComparison.OrdinalIgnoreCase)));
        }
Esempio n. 2
0
 private void button4_Click(object sender, EventArgs e)
 {
     grid.SelectedObject = Particle.Settings = ParticleSettings.LoadXml();
 }