Ejemplo n.º 1
0
        public PageInfo(string pstrFilePathAndName)
        {
            //            mstrPageName = Strings.LCase(RemovePath(pstrFilePathAndName));
            mstrPageName = RemovePath(pstrFilePathAndName);

            string sstrSource = null;
            sstrSource = OpenFile(pstrFilePathAndName);

            int slonProcessLocation = 0;

            //get control info
            ControlsInfo sclsControlsInfo = null;
            sclsControlsInfo = new ControlsInfo();
            ControlInfo sclsFormControl = null;
            //first (top) control should be Begin Form
            sclsFormControl = sclsControlsInfo.GetControlsInfo(sstrSource, ref slonProcessLocation);
            mcolControlsByName = sclsControlsInfo.ControlsByName;//not used?
            mcolAllControls = sclsControlsInfo.AllControls;

            //GetControlsInfo above should leave slonProcessLocation at the end of Control area of file and just before Function area of file

            //get function info
            mclsFunctionsInfo = new FunctionsInfo(sstrSource, ref slonProcessLocation);
            mlstFunctions = mclsFunctionsInfo.Functions; //used in WritePHPPage function below
            mlstOpenFormNames = mclsFunctionsInfo.OpenFormNames; //used in WritePHPPage function below
        }