Ejemplo n.º 1
0
        public void Run(
            VgcApis.Models.IServices.IApiService api,
            Services.Settings settings,
            Services.LuaServer luaServer)
        {
            this.api        = api;
            this.configMgr  = api.GetConfigMgrService();
            this.vgcServers = api.GetServersService();

            this.settings    = settings;
            this.luaServer   = luaServer;
            this.luaCoreCtrl = CreateLuaCoreCtrl(
                settings, api);

            InitControls();
            BindEvents();

            ReloadScriptName();
            if (cboxScriptName.Items.Count > 0)
            {
                cboxScriptName.SelectedIndex = 0;
            }

            repaintCtrl = new VgcApis.Libs.Views.RepaintCtrl(rtboxOutput);
            logUpdater.Run();
        }
Ejemplo n.º 2
0
        public void Run(
            VgcApis.Models.IServices.IApiService api,
            Services.Settings settings,
            Services.LuaServer luaServer)
        {
            this.api        = api;
            this.configMgr  = api.GetConfigMgrService();
            this.vgcServers = api.GetServersService();

            this.settings    = settings;
            this.luaServer   = luaServer;
            this.luaCoreCtrl = CreateLuaCoreCtrl(
                settings, api);

            InitControls();
            BindEvents();

            ReloadScriptName();
            if (cboxScriptName.Items.Count > 0)
            {
                cboxScriptName.SelectedIndex = 0;
            }

            updateOutputTimer.Tick += UpdateOutput;
            updateOutputTimer.Start();
        }
Ejemplo n.º 3
0
 public LuaApis(
     Services.Settings settings,
     VgcApis.Models.IServices.IApiService api)
 {
     this.settings          = settings;
     this.vgcConfigMgr      = api.GetConfigMgrService();
     this.vgcServers        = api.GetServersService();
     this.vgcWeb            = api.GetWebService();
     this.vgcUtils          = api.GetUtilsService();
     this.redirectLogWorker = settings.SendLog;
 }
Ejemplo n.º 4
0
 public Server(
     VgcApis.Models.IServices.IApiService api)
 {
     vgcServers   = api.GetServersService();
     vgcConfigMgr = api.GetConfigMgrService();
 }