public ElementPanel(ModelPanel modelPanel, PivotPosition position) { _modelPanel = modelPanel; Position = position; BackColor = Color.White; DragEnter += new DragEventHandler(onDragEnter); DragOver += new DragEventHandler(onDragOver); DragDrop += new DragEventHandler(onDragDrop); Paint += new PaintEventHandler(ElementPanel_Paint); AutoScroll = true; AllowDrop = true; }
public void Init(ModelPanel modelPanel) { ModelPanel = modelPanel; ModelToRestrictionText(); }