예제 #1
0
        public IList <string> GetAllModelNames(VisuMap.Script.IDataset dataset, bool allowPartialData = false)
        {
            List <string> modelNames = new List <string>();

            foreach (var f in System.IO.Directory.EnumerateFiles(DataModeling.workDir))
            {
                if (f.EndsWith(".md"))
                {
                    if (!f.EndsWith("readme.md", StringComparison.CurrentCultureIgnoreCase))
                    {
                        modelNames.Add(Path.GetFileNameWithoutExtension(f));
                    }
                }
            }
            return(modelNames);
        }
예제 #2
0
        public ModelTest()
        {
            InitializeComponent();
            Directory.SetCurrentDirectory(DataModeling.workDir);
            app     = DataModeling.App.ScriptApp;
            dataset = app.Dataset;
            ff      = new FeedforwardNetwork();

            propMan    = new VisuMap.Lib.PropertyManager(this, "Settings", "DataModeling");
            pluginRoot = DataModeling.App.GetPluginDataNode(0, "DataModeling", propMan.NameSpace, true);
            propMan.LoadProperties(pluginRoot);
            tboxArgs.Text = Argument;

            tboxArgs.AutoCompleteMode         = AutoCompleteMode.SuggestAppend;
            tboxArgs.AutoCompleteCustomSource = argHistory;
            tboxArgs.AutoCompleteSource       = AutoCompleteSource.CustomSource;

            UpdateModelList();
            UpdateEvalScriptList();
            DataModeling.cmdServer.AddListener(CmdModelTest);
            DataModeling.mdScript.CurrentTester = this;
        }