Ejemplo n.º 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainForm()
        {
            // Language settings
            System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");
            System.Threading.Thread.CurrentThread.CurrentCulture = ci;
            System.Threading.Thread.CurrentThread.CurrentUICulture = ci;

            InitializeComponent();
            _self = this;
            Initialize();

            // Load last selected zones
            if (!string.IsNullOrEmpty(Properties.Settings.Default.lastCreatedMaps))
            {
                foreach (string zoneId in Properties.Settings.Default.lastCreatedMaps.Split(','))
                {
                    try
                    {
                        SelectedZones.Add(DataWrapper.GetZoneSelectionByZoneId(zoneId));
                    }
                    catch { }
                }
                UpdateSelectedZoneListBox();
            }
        }