Example #1
0
        static void Main(string[] args)
        {
            //設定服務

            FtdCreatorService.Instance.CreateMethod = (objType) =>
            {
                if (objType == typeof(FtdLogService))
                {
                    return(new AppLogServiceII());
                }
                if (objType == typeof(FdmService))
                {
                    return(new AdmService());
                }
                if (objType == typeof(FtdCodeNameService))
                {
                    return(new AppCodeNameService());
                }
                if (objType == typeof(FtdSerialNumberService))
                {
                    return(new AppSerialNumberService());
                }
                return(null);
            };

            var menu = new FcoSimpleMenu();

            menu.Title = "AppServiceGen";

            P_Local_Upgrade_Folder = @"..\..\..\..\Upgrade";
            P_Local_AppWeb_Folder  = @"..\..\..\AppWeb";

            add_menu_dmdata_gen(menu.RootNode, '1');
            add_menu_data_gen(menu.RootNode, '2');
            add_menu_package(menu.RootNode, '3', "local");

            add_menu_package(menu.RootNode, '4', "FtbAssmbling");

            add_menu_upload(menu.RootNode, 'a', "FtbAssmbling");

            add_menu_webwin_gen(menu.RootNode, 'w');
            add_menu_mvc_gen(menu.RootNode, 'v');

            menu.start();
        }
Example #2
0
        static void Main(string[] args)
        {
            //設定服務
            FtdCreatorService.Instance.CreateMethod = (objType) =>
            {
                if (objType == typeof(FdmService))
                {
                    return(new AdmServiceII());
                }
                return(null);
            };

            var menu = new FcoSimpleMenu();

            menu.Title = "AppDataGen";
            add_menu_dmdata_gen(menu.RootNode, '1');
            menu.start();
        }