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(); }
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(); }
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; }
public Server( VgcApis.Models.IServices.IApiService api) { vgcServers = api.GetServersService(); vgcConfigMgr = api.GetConfigMgrService(); }