TypeVerificationSerializable TypesToVerify;        // = new TypeVerificationSerializable();

        private void dgAvailableGUIs_DoubleClick(object sender, System.EventArgs e)
        {
            GUITDC = new GUITestDataCollector();

            GUITDC.guiInfo = (GUITestUtility.GUIInfo)guiSurveyCls.GUISortedList.GetByIndex(dgAvailableGUIs.CurrentCell.RowNumber);

            TempList = new ArrayList();
            GUITDC.guiInfo.GUIControlName = PopulateGUINameTypeLists((Control)formUT, GUITDC.guiInfo.GUIHandle, true);
            TempList.Sort();
            GUITDC.ControlNameList = TempList;

            TempList = new ArrayList();
            GUITDC.guiInfo.GUIControlType = PopulateGUINameTypeLists((Control)formUT, GUITDC.guiInfo.GUIHandle, false);
            TempList.Sort();
            GUITDC.controlTypeList = TempList;

            GUITDC.PopulateGUIInfo();

            //chapter 8
            GUITDC.startupForm = startupForm;             //for simple verification
            guiTestVrfy        = new GUITestVerification(applicationUT, startupForm, GUITDC.guiInfo.GUIControlName);
            guiTestVrfy.FindMembersToVerify(applicationUT, GUITDC);

            //chapter 7
            if (GUITDC.ShowDialog() == DialogResult.OK)
            {
                GUITDC.guiInfo.GUIMemberType = GetMemberType(GUITDC.guiInfo.GUIControlName);
                GUITestSeqList.GUIList.Add(GUITDC.guiInfo);

                //chapter 8
                GUISequence++;
                guiTestVrfy.BuildVerificationList(GUITDC, GUISequence, ref TypesToVerify);
            }
        }
        private void dgAvailableGUIs_DoubleClick(object sender, System.EventArgs e)
        {
            GUITDC = new GUITestDataCollector();

            GUITDC.guiInfo = (GUITestUtility.GUIInfo)guiSurveyCls.GUISortedList.GetByIndex(dgAvailableGUIs.CurrentCell.RowNumber);

            TempList = new ArrayList();
            GUITDC.guiInfo.GUIControlName = PopulateGUINameTypeLists((Control)formUT, GUITDC.guiInfo.GUIHandle, true);
            TempList.Sort();
            GUITDC.ControlNameList = TempList;

            TempList = new ArrayList();
            GUITDC.guiInfo.GUIControlType = PopulateGUINameTypeLists((Control)formUT, GUITDC.guiInfo.GUIHandle, false);
            TempList.Sort();
            GUITDC.controlTypeList = TempList;

            GUITDC.PopulateGUIInfo();

            if (GUITDC.ShowDialog() == DialogResult.OK)
            {
                GUITDC.guiInfo.GUIMemberType = GetMemberType(GUITDC.guiInfo.GUIControlName);
                GUITestSeqList.GUIList.Add(GUITDC.guiInfo);
            }
        }