Esempio n. 1
0
        void ApplyProfile(Profile profile)
        {
            _currentProfile = profile;

            RebootTimeout    = profile.Reboot;
            MessageTimeout   = profile.Message;
            TimeBetweenTests = profile.InterTests;
            OperationDelay   = profile.OperationDelay;

            DnsIpv4     = profile.DnsIpv4;
            NtpIpv4     = profile.NtpIpv4;
            GatewayIpv4 = profile.GatewayIpv4;

            DnsIpv6     = profile.DnsIpv6;
            NtpIpv6     = profile.NtpIpv6;
            GatewayIpv6 = profile.GatewayIpv6;

            UseEmbeddedPassword = profile.UseEmbeddedPassword;
            Password1           = profile.Password1;
            Password2           = profile.Password2;

            // pass device types, services and features to scSettings
            scSettings.DeviceTypes = profile.DeviceType;
            scSettings.SelectFeatures(profile.Services, profile.Features);

            rbConformanceMode.Enabled = (scSettings.DeviceTypes != DeviceType.None);

            _controller.ApplyProfile(profile);
        }
Esempio n. 2
0
        void ApplyProfile(Profile profile)
        {
            _currentProfile = profile;

            scSettings.RebootTimeout    = profile.Reboot;
            scSettings.MessageTimeout   = profile.Message;
            scSettings.TimeBetweenTests = profile.InterTests;
            scSettings.OperationDelay   = profile.OperationDelay;
            scSettings.RecoveryDelay    = profile.RecoveryDelay;

            scSettings.DnsIpv4     = profile.DnsIpv4;
            scSettings.NtpIpv4     = profile.NtpIpv4;
            scSettings.GatewayIpv4 = profile.GatewayIpv4;
            scSettings.DnsIpv6     = profile.DnsIpv6;
            scSettings.NtpIpv6     = profile.NtpIpv6;
            scSettings.GatewayIpv6 = profile.GatewayIpv6;

            scSettings.UseEmbeddedPassword = profile.UseEmbeddedPassword;
            scSettings.Password1           = profile.Password1;
            scSettings.Password2           = profile.Password2;
            scSettings.SecureMethod        = profile.SecureMethod;

            scSettings.PTZNodeToken     = profile.PTZNodeToken;
            scSettings.VideoSourceToken = profile.VideoSourceToken;

            scSettings.EventTopic          = profile.EventTopic;
            scSettings.TopicNamespaces     = profile.TopicNamespaces;
            scSettings.SubscriptionTimeout = profile.SubscriptionTimeout;

            scSettings.RelayOutputDelayTimeMonostable = profile.RelayOutputDelayTime;

            _controller.ApplyProfile(profile);
        }
Esempio n. 3
0
        void ApplyProfile(Profile profile)
        {
            _currentProfile = profile;

            RebootTimeout    = profile.Reboot;
            MessageTimeout   = profile.Message;
            TimeBetweenTests = profile.InterTests;
            OperationDelay   = profile.OperationDelay;

            DnsIpv4     = profile.DnsIpv4;
            NtpIpv4     = profile.NtpIpv4;
            GatewayIpv4 = profile.GatewayIpv4;

            DnsIpv6     = profile.DnsIpv6;
            NtpIpv6     = profile.NtpIpv6;
            GatewayIpv6 = profile.GatewayIpv6;

            UseEmbeddedPassword = profile.UseEmbeddedPassword;
            Password1           = profile.Password1;
            Password2           = profile.Password2;

            _controller.ApplyProfile(profile);
        }