コード例 #1
0
        static void Main(string[] args)
        {
            CreatorDotH makerH       = new CreatorDotH();
            CreatorDotC makerC       = new CreatorDotC();
            Structure   myStructure  = new Structure();
            string      appVersion   = "Structure Builder [v1.2.0.1]";
            short       fullPackSize = 8; // Basic functions struct newEmpty + new + show + showall
            short       auxParNum    = 6; // Basic functions by parameter com + get + set
            short       packsDone    = 0;

            Console.WriteLine(appVersion);
            myStructure.StructureName      = DataCollector.StructureNameCollector();
            myStructure.AliasName          = DataCollector.StructureAliasCollector(myStructure.StructureName);
            myStructure.FinalStructureName = myStructure.AliasName;

            DataCollector.AddParameterToStructure(myStructure);

            auxParNum    *= (short)myStructure.ListParamaters.Count;
            fullPackSize += auxParNum;
            ConsolePrinter.ShowProgress(fullPackSize, packsDone);

            packsDone = makerH.FileMaker(myStructure, packsDone, fullPackSize);
            packsDone = makerC.FileMaker(myStructure, packsDone, fullPackSize);

            ConsolePrinter.ShowProgress(fullPackSize, packsDone);

            Console.ReadKey();
        }