Example #1
0
        /// <summary>
        /// Contructor with simultaneous copy from another BoltwoodClass object
        /// </summary>
        /// <param name="objCopied"></param>
        public BoltwoodFields(BoltwoodClass objCopied)
        {
            Bolt_date = objCopied.Bolt_date;
            Bolt_time = objCopied.Bolt_time;

            TempUnits      = objCopied.TempUnits;
            WindSpeedUnits = objCopied.WindSpeedUnits;

            Bolt_SkyTemp    = objCopied.Bolt_SkyTemp;
            Bolt_Temp       = objCopied.Bolt_Temp;
            Bolt_SensorTemp = objCopied.Bolt_SensorTemp;
            Bolt_WindSpeed  = objCopied.Bolt_WindSpeed;
            Bolt_Hum        = objCopied.Bolt_Hum;
            Bolt_Heater     = objCopied.Bolt_Heater;

            Bolt_RainFlag = objCopied.Bolt_RainFlag;
            Bolt_WetFlag  = objCopied.Bolt_WetFlag;

            Bolt_SinceLastMeasure = objCopied.Bolt_SinceLastMeasure;
            Bolt_now = objCopied.Bolt_now;

            Bolt_CloudCond   = objCopied.Bolt_CloudCond;
            Bolt_WindCond    = objCopied.Bolt_WindCond;
            Bolt_RainCond    = objCopied.Bolt_RainCond;
            Bolt_DaylighCond = objCopied.Bolt_DaylighCond;

            Bolt_RoofCloseFlag = objCopied.Bolt_RoofCloseFlag;
            Bolt_AlertFlag     = objCopied.Bolt_AlertFlag;
        }
Example #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        public ObservatoryControls_boltwood()
        {
            //BoltwoodFileClass.BoltwoodFilePath = ConfigManagement.ProgDocumentsPath;

            BoltwoodObj           = new BoltwoodClass();
            BoltwoodObj_GoodState = new BoltwoodFields();
            BoltwoodObj_BadState  = new BoltwoodFields();

            //set settings
            BoltwoodObj.ForcedDecimalSeparator = decimalSeparatorType.useComma;
            BoltwoodObj.DONT_USE_DIRECT_ACCESS = false;

            //load default presets
            Load_Presets();

            Switch_to_GOOD();
        }