示例#1
0
 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);
     }
 }
示例#2
0
 private void LoadButton_Click(object sender, EventArgs e)
 {
     FileDialog.CheckFileExists = true;
     FileDialog.Title           = "Load Process";
     FileDialog.FileName        = "Process";
     if (FileDialog.ShowDialog(this) == DialogResult.OK)
     {
         var proc = new Sardauscan.Core.ProcessingTask.Process();
         proc.Load(FileDialog.FileName);
         SelectedTasks = proc;
     }
 }
示例#3
0
        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);
            }
        }
示例#4
0
		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);
			}
			
			

		}
示例#5
0
		private void LoadButton_Click(object sender, EventArgs e)
		{
			FileDialog.CheckFileExists = true;
			FileDialog.Title = "Load Process";
			FileDialog.FileName = "Process";
			if (FileDialog.ShowDialog(this) == DialogResult.OK)
			{
				var proc = new Sardauscan.Core.ProcessingTask.Process();
				proc.Load(FileDialog.FileName);
				SelectedTasks = proc;
			}

		}
示例#6
0
		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);

		}