//Fbar Test Mode
        private void InitTestCase()
        {
            int    i = 0;
            string tmpStr;

            Array.Resize(ref objFBar.TestCases, _dicTestFBar.Length);
            objFBar.EqNa         = _eqNa;
            objFBar.TotalTestNo  = _dicTestFBar.Length;
            objFBar.TotalChannel = _segmentParam.Length;


            foreach (Dictionary <string, string> t in _dicTestFBar)
            {
                try
                {
                    objFBar.TestCases[i]           = CreateTestCaseObj(_myUtility.ReadTcfData(t, TcfHeader.ConstTestParam));
                    objFBar.TestCases[i].TcfHeader = _myUtility.ReadTcfData(t, TcfHeader.ConstParaHeader);
                    tmpStr = _myUtility.ReadTcfData(t, TcfHeader.ConstTestParam);
                    objFBar.TestCases[i].TestPara      = (ESparamTestCase)Enum.Parse(typeof(ESparamTestCase), tmpStr);
                    objFBar.TestCases[i].ChannelNumber = int.Parse((_myUtility.ReadTcfData(t, TcfHeader.ConstChannelNo)));
                    objFBar.TestCases[i].UsePrevious   = _myUtility.ReadTcfData(t, TcfHeader.ConstUsePrev);
                    tmpStr = _myUtility.ReadTcfData(t, TcfHeader.ConstSPara);
                    objFBar.TestCases[i].SParam     = (naEnum.ESParametersDef)Enum.Parse(typeof(naEnum.ESParametersDef), tmpStr);
                    objFBar.TestCases[i].StartFreq  = _myUtility.CStr2Val(_myUtility.ReadTcfData(t, TcfHeader.ConstStartFreq));
                    objFBar.TestCases[i].StopFreq   = _myUtility.CStr2Val(_myUtility.ReadTcfData(t, TcfHeader.ConstStopFreq));
                    objFBar.TestCases[i].TargetFreq = _myUtility.CStr2Val(_myUtility.ReadTcfData(t, TcfHeader.ConstTargetFreq));
                    tmpStr = _myUtility.ReadTcfData(t, TcfHeader.ConstSearchMethod);
                    objFBar.TestCases[i].SearchType = (ESearchType)Enum.Parse(typeof(ESearchType), tmpStr.ToUpper());
                    tmpStr = _myUtility.ReadTcfData(t, TcfHeader.ConstSearchDirection);
                    objFBar.TestCases[i].SearchDirection = (ESearchDirection)Enum.Parse(typeof(ESearchDirection), tmpStr.ToUpper());
                    objFBar.TestCases[i].SearchValue     = double.Parse(_myUtility.ReadTcfData(t, TcfHeader.ConstSearchValue));
                    objFBar.TestCases[i].Interpolate     = _myUtility.CStr2Bool(_myUtility.ReadTcfData(t, TcfHeader.ConstInterpolation));
                    objFBar.TestCases[i].Abs             = _myUtility.CStr2Bool(_myUtility.ReadTcfData(t, TcfHeader.ConstAbsValue));



                    objFBar.TestCases[i].TestNo = i;
                    objFBar.TestCases[i].Initialize();
                    objFBar.TestCases[i].BuildResults();
                    i++;
                }
                catch
                {
                    MessageBox.Show(objFBar.TestCases[i].TcfHeader + " init error");
                }
            }
        }