Пример #1
0
        public void ConfirmCouplechan()
        {
            CoupleDetectioninfo coupleinfo = new CoupleDetectioninfo(chanPara[curchanum]);

            coupleinfo.gatedelay[0].delay     = Convert.ToDouble(coupleIdelaybox.Text);
            coupleinfo.gatedelay[0].range     = Convert.ToDouble(coupleIrangebox.Text);
            coupleinfo.gatedelay[0].threshold = Convert.ToDouble(coupleIthrebox.Text);
            coupleinfo.gatedelay[1].delay     = Convert.ToDouble(coupleAdelaybox.Text);
            coupleinfo.gatedelay[1].range     = Convert.ToDouble(coupleArangebox.Text);
            coupleinfo.gatedelay[1].threshold = Convert.ToDouble(coupleAthrebox.Text);
            coupleinfo.gatedelay[2].delay     = Convert.ToDouble(coupleBdelaybox.Text);
            coupleinfo.gatedelay[2].range     = Convert.ToDouble(coupleBrangebox.Text);
            coupleinfo.gatedelay[2].threshold = Convert.ToDouble(coupleBthrebox.Text);
            coupleinfo.gatedelay[3].delay     = Convert.ToDouble(coupleCdelaybox.Text);
            coupleinfo.gatedelay[3].range     = Convert.ToDouble(coupleCrangebox.Text);
            coupleinfo.gatedelay[3].threshold = Convert.ToDouble(coupleCthrebox.Text);


            if (coupleBox.CheckState == CheckState.Checked)
            {
                coupleinfo.coupling = true;
            }
            else if (coupleBox.CheckState == CheckState.Unchecked)
            {
                coupleinfo.coupling = false;
            }

            detectionmode.coupleinfolist[curchanum - detectionmode.painfolist.Count()] = coupleinfo;
        }
Пример #2
0
        public void SetChan(List <ClassChanpara> chanPara)
        {
            lastpa     = false;
            lastcouple = false;
            detectionmode.painfolist.Clear();
            treechan.Clear();
            PADetectioninfo     painfo;
            CoupleDetectioninfo coupleinfo;
            int i = 0;

            this.chanPara = chanPara;

            for (i = 0; i < chanPara.Count; i++)
            {
                if (chanPara[i].zonetype == (int)ZoneType.Couple)
                {
                    coupleinfo = new CoupleDetectioninfo(chanPara[i]);
                    detectionmode.coupleinfolist.Add(coupleinfo);
                }
                else
                {
                    painfo = new PADetectioninfo(chanPara[i]);
                    detectionmode.painfolist.Add(painfo);
                }
                treechan.Add(chanPara[i].name, i);
            }

            SetTree();
        }
Пример #3
0
        public void UpdateSelectCoupleChannel(CoupleDetectioninfo coupleinfo)
        {
            coupleIdelaybox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[0].delay, 2));
            coupleIrangebox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[0].range, 2));
            coupleIthrebox.Text  = Convert.ToString(Math.Round(coupleinfo.gatedelay[0].threshold, 2));
            coupleAdelaybox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[1].delay, 2));
            coupleArangebox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[1].range, 2));
            coupleAthrebox.Text  = Convert.ToString(Math.Round(coupleinfo.gatedelay[1].threshold, 2));
            coupleBdelaybox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[2].delay, 2));
            coupleBrangebox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[2].range, 2));
            coupleBthrebox.Text  = Convert.ToString(Math.Round(coupleinfo.gatedelay[2].threshold, 2));
            coupleCdelaybox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[3].delay, 2));
            coupleCrangebox.Text = Convert.ToString(Math.Round(coupleinfo.gatedelay[3].range, 2));
            coupleCthrebox.Text  = Convert.ToString(Math.Round(coupleinfo.gatedelay[3].threshold, 2));

            if (coupleinfo.coupling)
            {
                coupleBox.CheckState = CheckState.Checked;
            }
            else
            {
                coupleBox.CheckState = CheckState.Unchecked;
            }
        }