private void InitConsole() { consoleScriptContext = new clsEventScriptContext(); consoleScriptContext.RenderSubject = RenderSubject; Console = new controlConsole(); consoleAutoComplete = new clsAutoComplete(Console.Input); consoleAutoComplete.AutoSize = true; consoleAutoComplete.MinFragmentLength = 1; consoleItemsCollection = new clsAutoCompleteCollection(consoleScriptContext, consoleAutoComplete); consoleAutoComplete.Items.SetAutocompleteItems(consoleItemsCollection); Console.Parent = panelEventsConsole; Console.Dock = DockStyle.Fill; Console.StartPromptLoop(ConsolePromptReady, ConsolePromptReplied); }
public clsAutoCompleteCollection(clsEventScriptContext _context, clsAutoComplete _menu) { context = _context; menu = _menu; }