Exemple #1
0
    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();
    }
Exemple #2
0
    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();
    }