public TabEditorCtrl( FormMain formMain, ComboBox cboxScriptName, Button btnNewScript, Button btnSaveScript, ComboBox cboxFunctionList, Button btnRunScript, Button btnStopScript, Button btnKillScript, Button btnClearOutput, RichTextBox rtboxOutput, Panel pnlEditorContainer) { this.formMain = formMain; this.cboxScriptName = cboxScriptName; this.btnNewScript = btnNewScript; this.btnSaveScript = btnSaveScript; this.cboxFunctionList = cboxFunctionList; this.btnRunScript = btnRunScript; this.btnStopScript = btnStopScript; this.btnKillScript = btnKillScript; this.btnClearOutput = btnClearOutput; this.rtboxOutput = rtboxOutput; this.pnlEditorContainer = pnlEditorContainer; logUpdater = new VgcApis.Libs.Tasks.Routine( UpdateOutput, VgcApis.Models.Consts.Intervals.LuaPluginLogRefreshInterval); }
public TabEditorCtrl( ComboBox cboxScriptName, Button btnNewScript, Button btnSaveScript, Button btnDeleteScript, Button btnRunScript, Button btnStopScript, Button btnKillScript, Button btnClearOutput, RichTextBox rtboxOutput, Panel pnlEditorContainer) { BindControls( cboxScriptName, btnNewScript, btnSaveScript, btnDeleteScript, btnRunScript, btnStopScript, btnKillScript, btnClearOutput, rtboxOutput, pnlEditorContainer); logUpdater = new VgcApis.Libs.Tasks.Routine( UpdateOutput, VgcApis.Models.Consts.Intervals.LuaPluginLogRefreshInterval); }
public override void Prepare() { v2rayCore = new Libs.V2Ray.Core(setting); coreStates = GetSibling <CoreStates>(); configer = GetSibling <Configer>(); logger = GetSibling <Logger>(); bookKeeper = new VgcApis.Libs.Tasks.Routine(RecordStatSample, 3000); }
FormSingleServerLog( string title, VgcApis.Libs.Sys.QueueLogger logger) { this.qLogger = logger; logUpdater = new VgcApis.Libs.Tasks.Routine( RefreshUi, VgcApis.Models.Consts.Intervals.SiFormLogRefreshInterval); InitializeComponent(); VgcApis.Misc.UI.AutoSetFormIcon(this); this.Text = I18N.Log + " - " + title; }
FormSingleServerLog( string title, Controllers.CoreServerComponent.Logger logger) { coreLogger = logger; coreLogger.OnLog += OnLogHandler; logUpdater = new VgcApis.Libs.Tasks.Routine( RefreshUi, VgcApis.Models.Consts.Intervals.SiFormLogRefreshInterval); InitializeComponent(); VgcApis.Misc.UI.AutoSetFormIcon(this); this.Text = I18N.Log + " - " + title; }
public ButtonCtrl( FormEditor formEditor, Scintilla editor, ComboBox cboxScriptName, Button btnNewScript, Button btnSaveScript, Button btnRunScript, Button btnStopScript, Button btnKillScript, Button btnClearOutput, Button btnShowSearchBox, Button btnGoto, TextBox tboxGoto, RichTextBox rtboxOutput) { this.formEditor = formEditor; this.cboxScriptName = cboxScriptName; this.btnNewScript = btnNewScript; this.btnSaveScript = btnSaveScript; this.btnRunScript = btnRunScript; this.btnStopLuaCore = btnStopScript; this.btnKillLuaCore = btnKillScript; this.btnClearOutput = btnClearOutput; this.btnShowSearchBox = btnShowSearchBox; this.btnGoto = btnGoto; this.tboxGoto = tboxGoto; this.rtboxOutput = rtboxOutput; this.editor = editor; logUpdater = new VgcApis.Libs.Tasks.Routine( UpdateOutput, VgcApis.Models.Consts.Intervals.LuaPluginLogRefreshInterval); }
private void FormLog_Load(object sender, EventArgs e) { logDisplayer = new VgcApis.Libs.Tasks.Routine(UpdateLog, 500); logDisplayer.Run(); // throw new NullReferenceException("for debugging"); }