public void ListFormGenerate(string tableName, bool blank, DataTable dt, string inputDirectroy, string outputDirectroy)
        {
            clsFindReplace fr = new clsFindReplace();

            string inclassfile     = inputDirectroy + "\\" + templateListclassname + ".cs";
            string outclassfile    = outputDirectroy + "\\" + tableName + "_Lst" + ".cs";
            string indesignerfile  = inputDirectroy + "\\" + templateListclassname + ".Designer.cs";
            string outdesignerfile = outputDirectroy + "\\" + tableName + "_Lst" + ".Designer.cs";
            string inresourcefile  = inputDirectroy + "\\" + templateListclassname + ".resx";
            string outresourcefile = outputDirectroy + "\\" + tableName + "_Lst" + ".resx";
            string genstring       = "";

            fr.findReplace(inclassfile, outclassfile, templateListclassname, tableName + "_Lst");
            fr.findReplace(indesignerfile, outdesignerfile, templateListclassname, tableName + "_Lst");
            fr.findReplace(inresourcefile, outresourcefile, templateListclassname, tableName + "_Lst");
            fr.findReplace(outclassfile, outclassfile, templateEntryclassname, tableName + "_Ent");
            if (!blank)
            {
                clsgridDeclare  grideclare = new clsgridDeclare();
                clsGrid         grid       = new clsGrid();
                clsGridAddRange gridrange  = new clsGridAddRange();
                string          gridCode   = null;

                gridCode  = grid.gencreate(dt) + gridrange.gencreate(dt) + "}" + grideclare.gencreate(dt);
                genstring = (new clsListing()).gencreate(dt);
                fr.findReplace(outclassfile, outclassfile, "//<Listing>", "//<Listing>\n" + genstring);
                fr.findReplace(outdesignerfile, outdesignerfile, "}//<Control>", gridCode);
                //for extra text
                fr.findReplace(outdesignerfile, outdesignerfile, "TextExtraValue", grid.table.text + " List");
            }
        }
        public void entryFormGenerate(string tableName, bool blank, DataTable dt, string inputDirectroy, string outputDirectroy, bool withPanel, bool withLable, string parent)
        {
            clsFindReplace fr      = new clsFindReplace();
            string         infile  = inputDirectroy + "\\" + templateEntryclassname;
            string         outfile = outputDirectroy + "\\" + tableName + "_Ent";

            string genstring = "";

            fr.findReplace(infile + ".cs", outfile + ".cs", templateEntryclassname, tableName + "_Ent");
            fr.findReplace(infile + ".Designer.cs", outfile + ".Designer.cs", templateEntryclassname, tableName + "_Ent");
            fr.findReplace(infile + ".resx", outfile + ".resx", templateEntryclassname, tableName + "_Ent");
            string controls = "";

            if (!blank)
            {
                clsEntry ent = new clsEntry();

                genstring = ent.gencreate(dt);
                controls  = myCg.Controlsw.createControls(withLable, dt, withPanel, parent);
                fr.findReplace(outfile + ".cs", outfile + ".cs", "//<Entry>", "//<Entry>\n" + genstring);
                //for form text
                fr.findReplace(outfile + ".Designer.cs", outfile + ".Designer.cs", "TextExtraValue", ent.table.text);
                fr.findReplace(outfile + ".Designer.cs", outfile + ".Designer.cs", "LableExtraValue", ent.table.text);
                fr.findReplace(outfile + ".Designer.cs", outfile + ".Designer.cs", "}//<Control>", controls);
            }
        }
        private void entryFormGenerate(string tableName, bool blank, DataTable dt, string inputDirectroy, string outputDirectroy, string lableEnding)
        {
            clsFindReplace fr      = new clsFindReplace();
            string         infile  = inputDirectroy + "\\" + templateEntryclassname;
            string         outfile = outputDirectroy + "\\" + tableName + "_Ent";

            string genstring = "";

            fr.findReplace(infile + ".cs", outfile + ".cs", templateEntryclassname, tableName + "_Ent");
            fr.findReplace(infile + ".Designer.cs", outfile + ".Designer.cs", templateEntryclassname, tableName + "_Ent");
            fr.findReplace(infile + ".resx", outfile + ".resx", templateEntryclassname, tableName + "_Ent");


            if (!blank)
            {
                clsEntry ent = new clsEntry();
                genstring = ent.gencreate(dt);
                fr.findReplace(outfile + ".cs", outfile + ".cs", "//<Entry>", "//<Entry>\n" + genstring);
                //for form text
                fr.findReplace(outfile + ".Designer.cs", outfile + ".Designer.cs", "TextExtraValue", ent.table.text);
                fr.findReplace(outfile + ".Designer.cs", outfile + ".Designer.cs", "LableExtraValue", ent.table.text);
                fr.findReplace(outfile + ".Designer.cs", outfile + ".Designer.cs", "}//<Control>", myCg.Controlsw.createControls(false, dt, false, "this"));
            }
        }