private void InitializeControl() { hidSelectedData.ValueChanged += hidSelectedData_ValueChanged; InnerControls.Add(hidSelectedData); InnerControls.Add(hidItems); InnerControls.Add(divList); }
public BlockControl(Block block) { InitializeComponent(); if (block is ValueBlock) { throw new NotSupportedException("ValueBlock"); } Block = block; InitLinkOutButtons(); InnerControls.Add(block.Control); block.Control.SizeChanged += Control_SizeChanged; InitSize(); }