//--------------------------------------------------------------------------------- private void FormContainer_ResizeEnd(object sender, EventArgs e) { _UserMove = false; DockStyle dock = ControlContainerInterfaceList.pickAnchor(out ControlContainerInterface container); ControlContainerInterfaceList.hideAnchors(); if (container == null || dock == DockStyle.None) { return; } if (dock != DockStyle.Fill) { container = container.Split(dock); } List <GuiControlInterface> allControls = GetAllControl(); foreach (GuiControlInterface tc in allControls) { container.Add(tc); } FormContainer.UpdateName(container.GetControl()); Close(); }
//------------------------------------------------------------------- public ControlContainerTabs() { InitializeComponent(); BorderStyle = BorderStyle.FixedSingle; Dock = DockStyle.Fill; ControlContainerInterfaceList.register(this); }
protected override void OnMove(EventArgs e) { if (!_UserMove) { return; } if (IsDisposed) { return; } ControlContainerInterface interf = ControlContainerInterfaceList.getUnderMouse(null); ControlContainerInterfaceList.showAnchors(interf); ControlContainerInterfaceList.updateAnchors(); base.OnMove(e); }