private void SaveButton_Click(object sender, EventArgs e) { FileDialog.CheckFileExists = false; FileDialog.Title = "Save Process"; FileDialog.FileName = "Process"; if (FileDialog.ShowDialog(this) == DialogResult.OK) { var proc = new Sardauscan.Core.ProcessingTask.Process(); proc.AddRange(SelectedTasks); proc.Save(FileDialog.FileName); } }
private void TaskBackgroundWorker_DoWork(object sender, DoWorkEventArgs e) { var proc = new Sardauscan.Core.ProcessingTask.Process(); proc.AddRange(SelectedTasks); UpdateViewer(null); ScanData ret = proc.Run(null, ListDragTarget, sender as BackgroundWorker, e); if (e == null) { UpdateViewer(ret); } }
private void TaskBackgroundWorker_DoWork(object sender, DoWorkEventArgs e) { var proc = new Sardauscan.Core.ProcessingTask.Process(); proc.AddRange(SelectedTasks); UpdateViewer(null); ScanData ret = proc.Run(null, ListDragTarget, sender as BackgroundWorker, e); if (e == null) UpdateViewer(ret); }