예제 #1
0
        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;
        }
예제 #2
0
 public void Init(ModelPanel modelPanel)
 {
     ModelPanel = modelPanel;
     ModelToRestrictionText();
 }