Ejemplo n.º 1
0
        private void SaveSetting()
        {
            Modality  scp = _mgt.GetSCPConfig();
            SCUConfig scu = _mgt.GetSCUConfig();

            if (scp == null || scu == null)
            {
                return;
            }

            scp.AETitle              = this.textBoxSCPAET.Text;
            scp.IPAddress            = this.textBoxSCPIP.Text.Trim();
            scp.Port                 = (int)this.numericUpDownSCPPort.Value;
            scu.AETitle              = this.textBoxSCUAET.Text;
            scu.MaxPduLength         = (int)this.numericUpDownPDULength.Value;
            scu.AssociationTimeOut   = (int)this.numericUpDownTimeOut.Value;
            _mgt.InvokeInterval      = (int)this.numericUpDownTimer.Value;
            _mgt.CharacterSetName    = this.comboBoxCharacterSet.Text;
            _mgt.SendCharacterSetTag = this.checkBoxSendCharacterSetTag.Checked;
        }
Ejemplo n.º 2
0
        private void LoadSetting()
        {
            Modality  scp = _mgt.GetSCPConfig();
            SCUConfig scu = _mgt.GetSCUConfig();

            if (scp == null || scu == null)
            {
                return;
            }

            this.textBoxSCPAET.Text                  = scp.AETitle;
            this.textBoxSCPIP.Text                   = scp.IPAddress;
            this.numericUpDownSCPPort.Value          = scp.Port;
            this.textBoxSCUAET.Text                  = scu.AETitle;
            this.numericUpDownPDULength.Value        = scu.MaxPduLength;
            this.numericUpDownTimeOut.Value          = scu.AssociationTimeOut;
            this.numericUpDownTimer.Value            = _mgt.InvokeInterval;
            this.comboBoxCharacterSet.Text           = _mgt.CharacterSetName;
            this.checkBoxSendCharacterSetTag.Checked = _mgt.SendCharacterSetTag;
        }