Ejemplo n.º 1
0
        public void DirectoryMergeTest()
        {
            var parser = new CfgSimpleParser();
            var watch  = Stopwatch.StartNew();
            var model  = parser.ParseDirectoryMerged("files\\mergetest");

            model.UpdateReferences();
            watch.Stop();
            DrawModel(model);
            Console.WriteLine(watch.ElapsedMilliseconds);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the model async.
        /// </summary>
        /// <param name="path">
        /// The path.
        /// </param>
        /// <returns>
        /// The <see cref="Task"/>.
        /// </returns>
        public Task <Model> GetModelAsync(string path)
        {
            var parser = new CfgSimpleParser();

            return(Task.Run(() => parser.ParseDirectoryMerged(path)));
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Executes the parse command
        /// </summary>
        public void ParseCommandExecute()
        {
            this.FullModel = new ObservableCollection<Model>();

            // Call on ClassForge
            var parser = new CfgSimpleParser();
            var model = parser.ParseDirectoryMerged(this.FolderPath);
            model.Name = this.FolderPath;
            this.FullModel.Add(model);
        }
 /// <summary>
 /// Gets the model async.
 /// </summary>
 /// <param name="path">
 /// The path.
 /// </param>
 /// <returns>
 /// The <see cref="Task"/>.
 /// </returns>
 public Task<Model> GetModelAsync(string path)
 {
     var parser = new CfgSimpleParser();
     return Task.Run(() => parser.ParseDirectoryMerged(path));
 }