Esempio n. 1
0
        //
        // initialization of main window
        //
        public Form1()
        {
            InitializeComponent();

            //
            // initialization of combobox with list of timezones
            //
            GPTimeZoneList    tzl    = GPTimeZoneList.sharedTimeZones();
            List <GPTimeZone> tzlist = tzl.getTimeZones();

            comboBox1.BeginUpdate();
            foreach (GPTimeZone tz in tzlist)
            {
                comboBox1.Items.Add(tz);
            }
            comboBox1.EndUpdate();

            comboBox1.Text = "Europe/Bratislava";
        }
Esempio n. 2
0
        public EditLocationProperties()
        {
            InitializeComponent();

            GPCountryList  list   = GPCountryList.getShared();
            GPTimeZoneList tzones = GPTimeZoneList.sharedTimeZones();

            comboBox1.BeginUpdate();
            foreach (GPCountry country in list.countries)
            {
                comboBox1.Items.Add(country);
            }
            comboBox1.EndUpdate();

            comboBox2.BeginUpdate();
            foreach (GPTimeZone tzone in tzones.getTimeZones())
            {
                comboBox2.Items.Add(tzone);
            }
            comboBox2.EndUpdate();

            ValidateInfo();
        }