Exemple #1
0
        private void plotSelectedWIPData()
        {
            if (!IsMultipleSnapshots)
            {
                WIPBarChart.Series.Clear();
            }

            var series = new ColumnSeries();

            foreach (var lotStep in XAxisLotSteps.Where(x => x.Selected))
            {
                if (SnapshotSelected.WIPlevels.ContainsKey(lotStep.Name))                        // Remark: plots 0 if lotStep is unknown in data.
                {
                    series.Items.Add(new ColumnItem(SnapshotSelected.WIPlevels[lotStep.Name]));
                }
                else
                {
                    series.Items.Add(new ColumnItem(0));
                }
            }

            // Input second LineSeries for

            WIPBarChart.Series.Add(series);
            WIPBarChart.InvalidatePlot(true);

            if (!isAnimationRunning)
            {
                ClearAllWIPDataCommand.NotifyOfCanExecuteChange();
                ClearLastWIPDataCommand.NotifyOfCanExecuteChange();
            }
        }
Exemple #2
0
 public void ClearAllWIPPlots()
 {
     WIPBarChart.Series.Clear();
     WIPBarChart.InvalidatePlot(true);
     ClearAllWIPDataCommand.NotifyOfCanExecuteChange();
     ClearLastWIPDataCommand.NotifyOfCanExecuteChange();
 }
Exemple #3
0
 private void updateCommandsCanExecute()
 {
     ClearAllWIPDataCommand.NotifyOfCanExecuteChange();
     ClearLastWIPDataCommand.NotifyOfCanExecuteChange();
     PlayAnimationCommand.NotifyOfCanExecuteChange();
     PauseAnimationCommand.NotifyOfCanExecuteChange();
     StopAnimationCommand.NotifyOfCanExecuteChange();
 }