Example #1
0
        public static void Run(IEnumerable <string> files)
        {
            Shared.OpenErrorLog();

            foreach (string file in files)
            {
                NABSA nabsa = new NABSA(file);

                Simulations simulations = new Simulations(null)
                {
                    Source = nabsa
                };
                simulations.Add(new Simulation(simulations)
                {
                    Name = nabsa.Name
                });

                Shared.WriteApsimX(simulations, Path.GetFileNameWithoutExtension(file));

                // Update the Progress bar
                Shared.Worker?.ReportProgress(0);
            }

            Shared.CloseErrorLog();
        }