Пример #1
0
        protected override void Start(VgcApis.Models.IServices.IApiService api)
        {
            var vgcServers   = api.GetServersService();
            var vgcSettings  = api.GetSettingService();
            var vgcConfigMgr = api.GetConfigMgrService();

            settings  = new Services.Settings();
            luaServer = new Services.LuaServer();
            formMgr   = new Services.FormMgr();

            settings.Run(vgcSettings);
            luaServer.Run(settings, api);
            formMgr.Run(settings, luaServer, api);
        }
Пример #2
0
        protected override void Start(VgcApis.Interfaces.Services.IApiService api)
        {
            var vgcSettings = api.GetSettingService();
            var vgcNotifier = api.GetNotifierService();

            miRoot = GetMenu(); // make sure miRoot is not null

            settings    = new Services.Settings();
            luaServer   = new Services.LuaServer();
            formMgr     = new Services.FormMgr();
            menuUpdater = new Services.MenuUpdater(vgcNotifier);

            settings.Run(vgcSettings);
            luaServer.Run(settings, api);
            formMgr.Run(settings, luaServer, api);
            menuUpdater.Run(luaServer, miRoot, miShowWindow);
        }
Пример #3
0
        protected override void Start(VgcApis.Interfaces.Services.IApiService api)
        {
            var vgcSettings = api.GetSettingService();
            var vgcNotifier = api.GetNotifierService();

            settings    = new Services.Settings();
            luaServer   = new Services.LuaServer();
            formMgr     = new Services.FormMgr();
            menuUpdater = new Services.MenuUpdater(settings);

            settings.Run(vgcSettings, vgcNotifier);
            luaServer.Run(settings, api);
            formMgr.Run(settings, luaServer, api);
            menuUpdater.Run(luaServer, miRoot, miShowWindow);

            luaServer.WakeUpAutoRunScripts(TimeSpan.FromSeconds(2));
        }