Example #1
0
        /// <summary>
        /// Run the given job on the given plotters
        /// </summary>
        private async Task RunJob(IPlotter[] plotters, PlotJob plotJob)
        {
            this.SetRunStatus(true);
            var complier         = new PlotJobCompiler();
            var plotJobCompliled = complier.Compile(plotJob);

            this.actualRobRunner = new PlotJobRunner();
            var plotResult = await this.actualRobRunner.Run(plotJobCompliled, plotters);

            this.actualRobRunner = null;
            if (!plotResult.Success)
            {
                MessageBox.Show($"Plot not successful! {plotResult.ErrorMessage}");
            }
            this.SetRunStatus(false);
        }
Example #2
0
 public MainWindow()
 {
     InitializeComponent();
     this.plotJobFromControlValues = new PlotJob();
     this.Loaded += MainWindow_Loaded;
 }