static void Main() { ntrClient = new NtrClient(); loadConfig(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); gCmdWindow = new CmdWindow(); Application.Run(gCmdWindow); }
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); }
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); }