public KntScriptConsoleForm(KntScriptConsoleComponent com) // , KntSEngine engine, string file = null { InitializeComponent(); PersonalizeTabStop(); _com = com; _engine = _com.KntSEngine; _sourceCodeFile = _com.CodeFile; }
private void buttonShowConsole_Click(object sender, EventArgs e) { var kntEngine = new KntSEngine(new InOutDeviceForm(), new KNoteScriptLibrary(_store)); var com = new KntScriptConsoleComponent(_store); com.KntSEngine = kntEngine; com.Run(); //KntScriptConsoleForm f = new KntScriptConsoleForm(com); //f.Show(); }
private void buttonShowSample_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(_selectedFile)) { MessageBox.Show("File no seleted."); return; } var kntEngine = new KntSEngine(new InOutDeviceForm(), new KNoteScriptLibrary(_store)); var com = new KntScriptConsoleComponent(_store); com.KntSEngine = kntEngine; com.CodeFile = Path.Combine(_pathSampleScripts, _selectedFile); com.Run(); //KntScriptConsoleForm f = new KntScriptConsoleForm(com); //f.Show(); }
public IViewConfigurable View(KntScriptConsoleComponent component) { return(new KntScriptConsoleForm(component)); }