public DeleteItem(LocationList locations) { this.Build(); if (locations != null) { this.label1.Text = Catalog.GetString("Location:"); int iCount = 0; foreach (Location loc in locations.Locations) { bmrkCombo.AppendText(loc.Name); bmrkCombo.Active = 0; iCount++; } } }
public DeleteItem(LocationList locations) { this.Build (); if (locations != null) { this.label1.Text = Catalog.GetString("Location:"); int iCount = 0; foreach (Location loc in locations.Locations) { bmrkCombo.AppendText(loc.Name); bmrkCombo.Active = 0; iCount ++; } } }
public OCMQueryPage3() { this.Build (); UIMonitor mon = UIMonitor.getInstance(); locationCombo.AppendText(Catalog.GetString("Home")); m_locations = mon.Locations; foreach (Location loc in mon.Locations.Locations) { locationCombo.AppendText(loc.Name); } locationCombo.Active = 0; if (mon.Configuration.ImperialUnits) { distMeasureLabel.Text = Catalog.GetString("Mi"); } }
public void InitializeApp(string filename, bool quitAfterImport) { m_Store = new FileStore(m_Config.DBFile); InitalizeTracing(); m_Locations = LocationList.LoadLocationList(); m_QuickFilters = QuickFilters.LoadQuickFilters(); m_Profiles = GPSProfileList.LoadProfileList(); m_Tools = EToolList.LoadEToolList(); m_Bookmarks = new BookmarkManager(this); m_CentreLat = AppConfig.LastLat; m_CentreLon = AppConfig.LastLon; m_CentreName = AppConfig.LastName; m_Window = new OCMMainWindow(this); QuickFilter startup = m_QuickFilters.GetFilter(AppConfig.StartupFilter); if (startup != null) { m_Window.CacheList.ApplyInitalQuickFilter(startup); } if (filename != null) { if (filename.EndsWith(".zip")) { ImportZip(filename); } else { ImportGPXFile(filename); } if (quitAfterImport) { this.End(); } else { ShowMainWindow(); } } else { m_splash = new OCMSplash(); m_splash.Show(); UpdateGUIThread(); m_splash.Preload(this, startup); } }
public void InitializeApp(string filename, bool quitAfterImport) { m_Store = new FileStore(m_Config.DBFile); InitalizeTracing (); m_Locations = LocationList.LoadLocationList(); m_QuickFilters = QuickFilters.LoadQuickFilters(); m_Profiles = GPSProfileList.LoadProfileList(); m_Tools = EToolList.LoadEToolList(); m_Bookmarks = new BookmarkManager(this); m_CentreLat = AppConfig.LastLat; m_CentreLon = AppConfig.LastLon; m_CentreName = AppConfig.LastName; m_Window = new OCMMainWindow(this); QuickFilter startup = m_QuickFilters.GetFilter(AppConfig.StartupFilter); if (startup != null) m_Window.CacheList.ApplyInitalQuickFilter(startup); if (filename != null) { if (filename.EndsWith(".zip")) ImportZip(filename); else ImportGPXFile(filename); if (quitAfterImport) this.End(); else ShowMainWindow(); } else { m_splash = new OCMSplash(); m_splash.Show(); UpdateGUIThread(); m_splash.Preload(this, startup); } }