public static GPTimeZoneListOld sharedTimeZones()
 {
     if (tzlist == null)
     {
         tzlist = new GPTimeZoneListOld();
     }
     return(tzlist);
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //XmlDocument doc = new XmlDocument();
                //doc.Load(openFileDialog1.SafeFileName);

                GPTimeZoneListOld oldList = new GPTimeZoneListOld();
                oldList.getTimeZones();
                GPTimeZoneList newList = oldList.convertTimezones();

                listBox1.BeginUpdate();
                listBox1.Items.Clear();
                foreach (string s in oldList.log)
                {
                    listBox1.Items.Add(s);
                }
                listBox1.EndUpdate();

                oldList.saveXml("c:\\Temp\\Timezones-q.xml");
                //oldList.saveXml("d:\\Temp\\Timezones-q.xml");
            }
        }