CreateRandom() публичный Метод

public CreateRandom ( int index, MaterialSelectionModel defaultMaterial, IEnumerable materialsCollection, IEnumerable voxelCollection ) : IMyVoxelFillProperties
index int
defaultMaterial SEToolbox.Models.MaterialSelectionModel
materialsCollection IEnumerable
voxelCollection IEnumerable
Результат IMyVoxelFillProperties
        public void AddRandomRowExecuted()
        {
            var filler = new AsteroidByteFiller();
            var randomModel = (AsteroidByteFillProperties)filler.CreateRandom(VoxelCollection.Count + 1, _dataModel.BaseMaterial, MaterialsCollection, VoxelFileList);

            if (SelectedRow != null)
            {
                VoxelCollection.Insert(VoxelCollection.IndexOf(SelectedRow) + 1, randomModel);
            }
            else
            {
                VoxelCollection.Add(randomModel);
            }

            _dataModel.RenumberCollection();
        }