Automatak.Simulator.DNP3.Components.LinkConfigControl.Configure C# (CSharp) Method

Configure() private method

private Configure ( LinkConfig config ) : void
config LinkConfig
return void
        private void Configure(LinkConfig config)
        {
            this.isMaster = config.isMaster;
            this.numericUpDownSource.Value = config.localAddr;
            this.numericUpDownDest.Value = config.remoteAddr;
            this.numericUpDownTimeout.Value = Convert.ToDecimal(config.responseTimeout.TotalMilliseconds);
            this.numericUpDownRetries.Value = config.numRetry;
            this.checkBoxConfirmed.Checked = config.useConfirms;
            this.numericUpDownKeepAliveTimeout.Value = Convert.ToDecimal(config.keepAliveTimeout.TotalMilliseconds);

            this.SetState();
        }