/// <summary> /// TODO add error checking here! /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnExecute_Click(object sender, EventArgs e) { //TODO: impliment proper threadding request DCSCore.Controller.Settings settings = new DCSCore.Controller.Settings(Dtas.ToArray(), chkDoseCompare.Checked, chkPDDCompare.Checked, false, Environment.ProcessorCount); //TODO: make Fuzzy res width gui configurable //TODO: Impliment gamma if (!_isRunning) { _dataHandler.Settings = settings; _dataHandler.SourceAliasName = SourceAliasName; _dataHandler.TargetAliasName = TargetAliasName; if (Tested == false) { TestDirectories_Click(sender, e); } if (Tested == false) { lblRunStatus.Text = Resources.paramTestFailed; return; } if (!chkPDDCompare.Checked && !chkDoseCompare.Checked) { lblRunStatus.Text = Resources.zeroTasks; return; } worker.RunWorkerAsync(); return; } else { worker.CancelAsync(); } }
public DscDataHandler(DCSCore.Controller.Settings settings) { this.Settings = settings; DosePairsList = new ConcurrentBag <MatchedDosePair>(); mathematics = new X86Mathematics(); }