using System;
using System.ComponentModel;

namespace OpenCVStudio_v0
{
    public sealed class MinEnclosingCircleBlockProperties
    {
        private readonly ProjectBlock block;

        public MinEnclosingCircleBlockProperties(ProjectManager projectManager, ProjectBlock block)
        {
            ArgumentNullException.ThrowIfNull(projectManager);
            this.block = block ?? throw new ArgumentNullException(nameof(block));
        }

        [Category("Блок")]
        [DisplayName("Название")]
        [ReadOnly(true)]
        public string Name => block.Name;

        [Category("Блок")]
        [DisplayName("Тип")]
        [ReadOnly(true)]
        public string BlockType => block.BlockType;
    }
}