public BlockOrderValidationResult(BlockOrderData blockOrderData, BlockOrderPanel blockOrderPanel) { Valid = true; if (!blockOrderData.SelectionRequired) { return; } Errors = new List <string>(); if (blockOrderPanel.BlockChosen) { return; } Errors.Add($"Need to select block order value"); Valid = false; }
public DesignPreviewer(IExperimentDesignFile designFile) { DesignFile = designFile; ExperimentDesign = ExperimentDesign.CreateFrom(designFile); BlockOrderData = new BlockOrderData(ExperimentDesign); }