public override void Rename(DataRepository observedData) { using (var renamePresenter = _applicationController.Start <IRenameObservedDataPresenter>()) { if (!renamePresenter.Edit(observedData)) { return; } _executionContext.AddToHistory(new RenameObservedDataCommand(observedData, renamePresenter.Name).Run(_executionContext)); } }
public void ExtractIndividualsFrom(Population population, IndividualExtractionOptions individualExtractionOptions) { _executionContext.AddToHistory(ExtractIndividualsFromPopulationCommand(population, individualExtractionOptions)); }
public void AddCommandToHistory(ICommand command) { _executionContext.AddToHistory(command); }