public void Initialize(SPCVariable spcV)
        {
            _spcObject = spcV;

            _spcObject.ReSampleHandle += refush;

            lbVariableName.SetResourceReference(Label.ContentProperty, "TP_" + _spcObject.CurObj.serialNum);
            lbSampleSize.Content = _spcObject.SampleSize.ToString();

            lbUSL.Content = tbUSL.Content = _spcObject.USL.ToString("0.00");
            lbLSL.Content = tbLSL.Content = _spcObject.LSL.ToString("0.00");
            lbUnitUSL.Content = lbUnitLSL.Content = _spcObject.Unit;

            tbSampleSize.Content = _spcObject.SampleSize.ToString();
            tbSamplePeriod.Content = _spcObject.SamplePeriod.ToString();
            tbStatisticsSampleCount.Content = _spcObject.StatisticsSampleCount.ToString();
            tbCpkThreshold.Content = _spcObject.CpkWarningThreshold.ToString();
            tbAlarmDelay.Content = _spcObject.AlarmDelay.ToString();
        }
        public SPCSummaryUnitCtrl(SPCVariable spcV)
        {
            InitializeComponent();

            CurData = spcV;
        }