public override void LoadSettings() { m_CatalogValidator = new StarCatalogueFacade(TangraConfig.Settings.StarCatalogue); cbxCatalogue.SelectedIndex = (int)TangraConfig.Settings.StarCatalogue.Catalog - 1; tbxCatalogueLocation.Text = TangraConfig.Settings.StarCatalogue.CatalogLocation; if (Guid.Empty != TangraConfig.Settings.StarCatalogue.CatalogMagnitudeBandId) { CatalogMagnitudeBand bnd = cbxCatalogPhotometryBand.Items.Cast<CatalogMagnitudeBand>().FirstOrDefault(mb => mb.Id == TangraConfig.Settings.StarCatalogue.CatalogMagnitudeBandId); if (bnd != null) cbxCatalogPhotometryBand.SelectedItem = bnd; } }
public override void LoadSettings() { m_CatalogValidator = new StarCatalogueFacade(TangraConfig.Settings.StarCatalogue); cbxCatalogue.SelectedIndex = (int)TangraConfig.Settings.StarCatalogue.Catalog - 1; tbxCatalogueLocation.Text = TangraConfig.Settings.StarCatalogue.CatalogLocation; if (Guid.Empty != TangraConfig.Settings.StarCatalogue.CatalogMagnitudeBandId) { CatalogMagnitudeBand bnd = cbxCatalogPhotometryBand.Items.Cast <CatalogMagnitudeBand>().FirstOrDefault(mb => mb.Id == TangraConfig.Settings.StarCatalogue.CatalogMagnitudeBandId); if (bnd != null) { cbxCatalogPhotometryBand.SelectedItem = bnd; } } }
public override void LoadSettings() { m_CatalogValidator = new StarCatalogueFacade(TangraConfig.Settings.StarCatalogue); if (double.IsNaN(TangraConfig.Settings.Generic.Longitude)) { cbxLongitude.SelectedIndex = -1; tbxLongitude.Text = string.Empty; } else { double longNoSign = Math.Abs(TangraConfig.Settings.Generic.Longitude); tbxLongitude.Text = AstroConvert.ToStringValue(longNoSign, "DD MM SS"); if (TangraConfig.Settings.Generic.Longitude < 0) { cbxLongitude.SelectedIndex = 1; } else { cbxLongitude.SelectedIndex = 0; } } rbMPCCode.Checked = TangraConfig.Settings.Astrometry.UseMPCCode; tbxMPCCode.Text = TangraConfig.Settings.Astrometry.MPCObservatoryCode; if (double.IsNaN(TangraConfig.Settings.Generic.Latitude)) { cbxLatitude.SelectedIndex = -1; tbxLatitude.Text = string.Empty; } else { double latNoSign = Math.Abs(TangraConfig.Settings.Generic.Latitude); tbxLatitude.Text = AstroConvert.ToStringValue(latNoSign, "DD MM SS"); if (TangraConfig.Settings.Generic.Latitude < 0) { cbxLatitude.SelectedIndex = 1; } else { cbxLatitude.SelectedIndex = 0; } } }
public override void LoadSettings() { m_CatalogValidator = new StarCatalogueFacade(TangraConfig.Settings.StarCatalogue); if (double.IsNaN(TangraConfig.Settings.Generic.Longitude)) { cbxLongitude.SelectedIndex = -1; tbxLongitude.Text = string.Empty; } else { double longNoSign = Math.Abs(TangraConfig.Settings.Generic.Longitude); tbxLongitude.Text = AstroConvert.ToStringValue(longNoSign, "DD MM SS"); if (TangraConfig.Settings.Generic.Longitude < 0) cbxLongitude.SelectedIndex = 1; else cbxLongitude.SelectedIndex = 0; } rbMPCCode.Checked = TangraConfig.Settings.Astrometry.UseMPCCode; tbxMPCCode.Text = TangraConfig.Settings.Astrometry.MPCObservatoryCode; if (double.IsNaN(TangraConfig.Settings.Generic.Latitude)) { cbxLatitude.SelectedIndex = -1; tbxLatitude.Text = string.Empty; } else { double latNoSign = Math.Abs(TangraConfig.Settings.Generic.Latitude); tbxLatitude.Text = AstroConvert.ToStringValue(latNoSign, "DD MM SS"); if (TangraConfig.Settings.Generic.Latitude < 0) cbxLatitude.SelectedIndex = 1; else cbxLatitude.SelectedIndex = 0; } }