Esempio n. 1
0
        public void SetFQCResult(FQCData data)
        {
            if (this.InvokeRequired)
            {
                this.BeginInvoke(new DelegateFuctionNoParamater(SetFQCResult), new object[] { data });
                return;
            }

            if (string.IsNullOrEmpty(data.brand))
            {
                return;
            }

            lbBrandValue.Text = data.brand;
            lbSizeValue.Text  = data.syrangeSize.ToString();

            if (data.pressureN <= 0)
            {
                lbNValue.Text = "----";
            }
            else
            {
                lbNValue.Text = data.pressureN.ToString("F1");
            }

            if (data.pressureL <= 0)
            {
                lbLValue.Text = "----";
            }
            else
            {
                lbLValue.Text = data.pressureL.ToString("F1");
            }

            if (data.pressureC <= 0)
            {
                lbCValue.Text = "----";
            }
            else
            {
                lbCValue.Text = data.pressureC.ToString("F1");
            }

            if (data.pressureH <= 0)
            {
                lbHValue.Text = "----";
            }
            else
            {
                lbHValue.Text = data.pressureH.ToString("F1");
            }
            IsPass(data.pressureN, data.pressureL, data.pressureC, data.pressureH);
        }
Esempio n. 2
0
 public DoublePumpDataArgs(FQCData data, bool isPass = true)
 {
     m_Data = data;
     IsPass = isPass;
 }