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.Interfaces.Services.IApiService api, Services.Settings settings, Services.FormMgrSvc formMgr, Services.LuaServer luaServer) { this.formMgr = formMgr; this.settings = settings; this.luaServer = luaServer; this.luaCoreCtrl = CreateLuaCoreCtrl(settings, api); isLoadClrLib = false; BindEvents(); ReloadScriptName(); rtboxFreezer = new VgcApis.UserControls.RepaintController(rtboxOutput); logUpdater.Run(); /* #if DEBUG * if (cboxScriptName.Items.Count > 0) * { * cboxScriptName.SelectedIndex = 0; * } #endif */ }
private void pauseToolStripMenuItem_Click(object sender, EventArgs e) { var pause = !pauseToolStripMenuItem.Checked; pauseToolStripMenuItem.Checked = pause; if (pause) { logDisplayer.Pause(); } else { logDisplayer.Run(); } }
public void Run( VgcApis.Interfaces.Services.IApiService api, Services.Settings settings, Services.LuaServer luaServer) { this.settings = settings; this.luaServer = luaServer; this.luaCoreCtrl = CreateLuaCoreCtrl(settings, api); InitControls(); BindEvents(); ReloadScriptName(); repaintCtrl = new VgcApis.Libs.Views.RepaintCtrl(rtboxOutput); logUpdater.Run(); }
void RestartCoreWorker(Action next) { try { var finalConfig = configer.GetFinalConfig(); if (finalConfig == null) { StopCore(); return; } v2rayCore.title = coreStates.GetTitle(); v2rayCore.RestartCore(finalConfig.ToString(), Misc.Utils.GetEnvVarsFromConfig(finalConfig)); bookKeeper?.Run(); } finally { next?.Invoke(); } }
public void Run( VgcApis.Interfaces.Services.IApiService api, Services.Settings settings, Services.LuaServer luaServer) { this.settings = settings; this.luaServer = luaServer; this.luaCoreCtrl = CreateLuaCoreCtrl(settings, api); InitControls(); BindEvents(); ReloadScriptName(); rtboxFreezer = new VgcApis.Libs.Views.RepaintController(rtboxOutput); logUpdater.Run(); #if DEBUG if (cboxScriptName.Items.Count > 0) { cboxScriptName.SelectedIndex = 0; } #endif }
private void FormSingleServerLog_Load(object sender, EventArgs e) { logUpdater.Run(); repaintCtrl = new VgcApis.UserControls.RepaintController(rtBoxLogger); }
private void FormSingleServerLog_Load(object sender, EventArgs e) { logUpdater.Run(); repaintCtrl = new VgcApis.Libs.Views.RepaintCtrl(rtBoxLogger); }
private void FormSingleServerLog_Load(object sender, EventArgs e) { logUpdater.Run(); }
private void FormLog_Load(object sender, EventArgs e) { logDisplayer = new VgcApis.Libs.Tasks.Routine(UpdateLog, 500); logDisplayer.Run(); // throw new NullReferenceException("for debugging"); }