コード例 #1
0
 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;
 }
コード例 #2
0
 public DesignPreviewer(IExperimentDesignFile designFile)
 {
     DesignFile       = designFile;
     ExperimentDesign = ExperimentDesign.CreateFrom(designFile);
     BlockOrderData   = new BlockOrderData(ExperimentDesign);
 }