private void buttonShowConsole_Click(object sender, EventArgs e) { var kntEngine = new KntSEngine(new InOutDeviceForm(), new MyLibrary()); KntScriptConsoleForm f = new KntScriptConsoleForm(kntEngine); 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 MyLibrary()); KntScriptConsoleForm f = new KntScriptConsoleForm(kntEngine, _pathSampleScripts + _selectedFile); f.Show(); }