public SmallIntGenerator(Column column) : base(column) { if (Column.Constraints is SmallIntConstraints constrains) { Constraints = constrains; } }
public SmallIntConstraintsPanel(Constraints constraints) { if (!(constraints is SmallIntConstraints intConstrains)) { throw new ArgumentException(nameof(constraints)); } _constraints = intConstrains; InitializeComponent(); }