public void Dock(DockStack target) { lock (IFace.UpdateMutex) { IsDocked = true; //undockingMousePosOrig = lastMousePos; savedSlot = this.LastPaintedSlot; wasResizable = Resizable; Resizable = false; LastSlots = LastPaintedSlot = Slot = default(Rectangle); Left = Top = 0; IFace.RemoveWidget(this); target.Dock(this); } }