Exemple #1
0
        public void ConfirmTOFDchan()
        {
            TOFDDetectioninfo tofdinfo = new TOFDDetectioninfo();

            tofdinfo.delay        = Convert.ToDouble(bdelayBox.Text);
            tofdinfo.range        = Convert.ToDouble(brangeBox.Text);
            tofdinfo.carlibrawave = Convert.ToDouble(bcalibraBox.Text) / 100;
            tofdinfo.alarmwave    = Convert.ToDouble(balarmBox.Text) / 100;
            tofdinfo.supwave      = Convert.ToDouble(bsuppressBox.Text) / 100;
            tofdinfo.displaywave  = Convert.ToDouble(bdisplayBox.Text) / 100;
            if (bscan.CheckState == CheckState.Checked)
            {
                tofdinfo.bscan = true;
            }
            else
            {
                tofdinfo.bscan = false;
            }
            tofdinfo.materal      = txtMateral.Text;
            tofdinfo.velocity     = Convert.ToDouble(txtVelocity.Text);
            tofdinfo.angle        = Convert.ToInt32(txtAngle.Text);
            tofdinfo.toplength    = Convert.ToDouble(txtTLength.Text);
            tofdinfo.bottomlength = Convert.ToDouble(txtBottomlength.Text);
            tofdinfo.height       = Convert.ToDouble(txtHeight.Text);
            tofdinfo.freq         = Convert.ToDouble(txtFre.Text);
            tofdinfo.elenum       = Convert.ToInt32(txtEleNum.Text);
            tofdinfo.eledia       = Convert.ToDouble(txtEleDia.Text);
            tofdinfo.receiver     = cmbReceiver.SelectedIndex;
            tofdinfo.pcs          = Convert.ToDouble(txtPCS.Text);
            tofdinfo.refractangle = Convert.ToDouble(txtRefractAngle.Text);

            detectionmode.tofdinfolist[0] = tofdinfo;
        }
Exemple #2
0
        //jpc
        public void UpdateSelectTOFD(TOFDDetectioninfo TOFDdetection)
        {
            bdelayBox.Text    = Convert.ToString(Math.Round(TOFDdetection.delay, 2));
            brangeBox.Text    = Convert.ToString(Math.Round(TOFDdetection.range, 2));
            bcalibraBox.Text  = Convert.ToString(TOFDdetection.carlibrawave * 100);
            balarmBox.Text    = Convert.ToString(TOFDdetection.alarmwave * 100);
            bsuppressBox.Text = Convert.ToString(TOFDdetection.supwave * 100);
            bdisplayBox.Text  = Convert.ToString(TOFDdetection.displaywave * 100);
            if (TOFDdetection.bscan)
            {
                bscan.CheckState = CheckState.Checked;
            }
            else
            {
                bscan.CheckState = CheckState.Unchecked;
            }

            txtMateral.Text           = TOFDdetection.materal;
            txtVelocity.Text          = Convert.ToString(TOFDdetection.velocity);
            txtAngle.Text             = Convert.ToString(TOFDdetection.angle);
            txtTLength.Text           = Convert.ToString(TOFDdetection.toplength);
            txtBottomlength.Text      = Convert.ToString(TOFDdetection.bottomlength);
            txtHeight.Text            = Convert.ToString(TOFDdetection.height);
            txtFre.Text               = Convert.ToString(TOFDdetection.freq);
            txtEleNum.Text            = Convert.ToString(TOFDdetection.elenum);
            txtEleDia.Text            = Convert.ToString(TOFDdetection.eledia);
            cmbReceiver.SelectedIndex = TOFDdetection.receiver;
            txtPCS.Text               = Convert.ToString(TOFDdetection.pcs);
            txtRefractAngle.Text      = Convert.ToString(TOFDdetection.refractangle);
        }
Exemple #3
0
        public FormDetectionMode(MainForm mainform, List <SessionInfo> sessionsAttrs)
        {
            this.sessionsAttrs = sessionsAttrs;
            this.mainform      = mainform;
            InitializeComponent();
            MultiLanguage.getNames(this);
            InitCommon();
            InitGate();
            ReadDetectionFile();
            pagetofd.Parent = null;

            foreach (SessionInfo se in sessionsAttrs)
            {
                if (se.sessionIndex == 1)
                {
                    TOFDDetectioninfo tofdinfo = new TOFDDetectioninfo();
                    detectionmode.tofdinfolist.Add(tofdinfo);
                }
            }
        }