internal override void Reload(RM.API rm, ref double maxValue)
        {
            base.Reload(rm, ref maxValue);

            _updateRate = rm.ReadInt("UpdateRate", 3600);
            RM.API.Log(RM.API.LogType.Debug, GetLogString("UpdateRate=[{0}]", _updateRate));

            _uri = rm.ReadString("Uri", null);
            RM.API.Log(RM.API.LogType.Debug, GetLogString("Uri=[{0}]", _uri));
        }
Esempio n. 2
0
        internal void Reload(Rainmeter.API rm, ref double maxValue)
        {
            SkinHandle = rm.GetSkin();
            FinishAction = rm.ReadString("FinishAction", "");
            ConnectionType = rm.ReadString("ConnectionType", "INTERNET").ToUpperInvariant();
            if (ConnectionType != "NETWORK" && ConnectionType != "INTERNET")
            {
                API.Log(API.LogType.Error, "CheckNet.dll: ConnectionType=" + ConnectionType + " not valid");
            }

            UpdateRate = rm.ReadInt("UpdateRate", 20);
            if (UpdateRate <= 0)
            {
                UpdateRate = 20;
            }
        }
        internal override void Reload(Rainmeter.API api, ref double maxValue)
        {
            base.Reload(api, ref maxValue);

            Name = api.GetMeasureName();
            Skin = api.GetSkin();

            ValueA = api.ReadInt("ValueA", 0);
            ValueB = api.ReadInt("ValueB", 0);
            ValueC = api.ReadInt("ValueC", 0);
        }