Exemple #1
0
        private static void SaveDomeSettings()
        {
            DomeSettings domeSettings = DomeSettings.FromProfile();

            domeSettings.AzimuthAdjustment           = Globals.DomeAzimuthAdjustment;
            domeSettings.UsePOTHDomeSlaveCalculation = Globals.UsePOTHDomeSlaveCalculation;
            domeSettings.ToProfile();
        }
        private void SaveDomeSettings()
        {
            // Read the current settings and update them with the changes
            // to preserve the logging flag.

            DomeSettings settings = DomeSettings.FromProfile();

            settings.DomeID     = DomeManager.DomeID;
            settings.DomeLayout = Globals.DomeLayout;
            settings.ToProfile();
        }
Exemple #3
0
        /// <summary>
        /// Write the device configuration to the  ASCOM  Profile store
        /// </summary>
        internal void SaveProfile()
        {
            DomeSettings settings = new DomeSettings
            {
                DomeID            = DomeManager.DomeID,
                DomeLayout        = Globals.DomeLayout,
                AzimuthAdjustment = Globals.DomeAzimuthAdjustment,
                IsLoggingEnabled  = _logger.Enabled
            };

            settings.ToProfile();
        }