private void onMainWindowClosing(object sender, System.ComponentModel.CancelEventArgs e) { if (experiment != null) { if (experiment.IsRunning) { experiment.Stop(); } } }
void cmdStopIV_Click(object sender, RoutedEventArgs e) { if (experiment != null) { experiment.Stop(); } experiment.DataArrived -= expIV_FET_dataArrived; experiment.Progress -= experimentProgress; experiment.Status -= experimentStatus; }
/////////////////////////////////////////////////////////////////////// public void stopAcquisition() { IExperiment experiment = LightFieldApplication.Experiment; if (experiment != null) { experiment.Stop(); } }