Ejemplo n.º 1
0
        public frmSettings()
        {
            InitializeComponent();

            FormBorderStyle = FormBorderStyle.FixedSingle;
            MaximizeBox     = false;
            MinimizeBox     = false;

            tbCsvDelimiter.Text = Properties.Settings.Default.charDelimiter;

            tbDbConnectionString.Text = Properties.Settings.Default.strConnectionString;

            // uses the SupportedCultures array
            UICulture     Lng   = new UICulture();
            List <String> liste = Lng.SupportedCulture;

            String      CultName = Properties.Settings.Default.Culture; // read from properties
            CultureInfo CultInfo = new CultureInfo(CultName);

            SelectedCulture = CultInfo;

            foreach (string IetfTag in liste)
            {
                CultureInfo Cult = new CultureInfo(IetfTag);

                // Note: The property listBoxCultures.DisplayName is set to "NativeName" in order to
                //       show language name in its own language.
                listBoxCultures.Items.Add(Cult);
            }

            listBoxCultures.SelectedItem = SelectedCulture;

            CultureIndex = listBoxCultures.SelectedIndex;
        }
Ejemplo n.º 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //load language settings
            UICulture Lng = new UICulture();

            Lng.LoadAndActivate();

            Application.Run(new frmMain());
        }