Ejemplo n.º 1
0
 private static void Main()
 {
     pyEngine = Python.CreateEngine();
     ntrClient = new NtrClient();
     scriptHelper = new ScriptHelper();
     globalScope = pyEngine.CreateScope();
     globalScope.SetVariable("nc", scriptHelper);
     loadConfig();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     gCmdWindow = new CmdWindow();
     Application.Run(gCmdWindow);
 }
Ejemplo n.º 2
0
        public void Init()
        {
            // Initialize and setup script engine
            ScriptEngine = Python.CreateEngine();
            NtrClient = new NtrClient();
            ScriptHelper = new ScriptHelper();
            ScriptScope = ScriptEngine.CreateScope();
            ScriptScope.SetVariable("nc", ScriptHelper);

            // Load the configuration
            LoadConfig();


            // Display the main window
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CommandWindow = new MainWindow();
            Application.Run(CommandWindow);
        }