public virtual void Initialize(IApplication app) { App = app; if (app.ScriptApp.ApplicationBuild < 935) { MessageBox.Show("Data Modeling plugin requires VisuMap 5.0.935 or higher!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } app.InstallPluginObject(mdScript = new ModelingScript()); ToolStripMenuItem miPlugin = App.GetPluginMenu(); var gm = app.ScriptApp.GuiManager; miPlugin.DropDownItems.Add("Model Training", null, (s, e) => gm.ShowForm(new ModelTraining(), true)); miPlugin.DropDownItems.Add("Model Evaluation", null, (s, e) => gm.ShowForm(new ModelTest(), true)); miPlugin.DropDownItems.Add("Model Server", null, (s, e) => gm.ShowForm(new ModelServer(), true)); miPlugin.DropDownItems.Add("Model Manager", null, (s, e) => gm.ShowForm(new ModelManager2(), true)); app.InstallScriptPlugin(new PythonEngine()); //app.InstallScriptPlugin(new J8Engine()); propMan = new VisuMap.Lib.PropertyManager(this, "Settings", "DataModeling"); pluginRoot = DataModeling.App.GetPluginDataNode(0, "DataModeling", propMan.NameSpace, true); propMan.LoadProperties(pluginRoot); homeDir = app.ScriptApp.GetProperty("DataModeling.HomeDir", ""); workDir = app.ScriptApp.GetProperty("DataModeling.WorkDir", ""); if (!homeDir.EndsWith("\\")) { homeDir += "\\"; } if (!workDir.EndsWith("\\")) { workDir += "\\"; } SetDefaultWorkDir(); modelManager = new ModelManager(); app.InstallFileImporter(new NumpyFileImport()); cmdServer = new CmdServer(); cmdServer.Start(); app.ShuttingDown += App_ShuttingDown; app.ApplicationStarted += App_ApplicationStarted; }
public void TestMethod1() { serv.Start(); Console.Read(); }