private void AddLocationManager() { _locationManager = new LocationManager(GetLocationManagerConfig(), DesignConfig); ControlCollectionExt.ToList(this.Controls).ForEach(control => { if (control is IReLocateControl reLocateControl) { reLocateControl.LocationManager = _locationManager; } }); _locationManager.AddPanel(_panelMain1, LocationSide.StaticUP, 1); _locationManager.AddPanel(_panelToolBox, LocationSide.StaticLeft, 1); _locationManager.AddPanel(_panelInstrumentPanel1, LocationSide.Left, 1); _locationManager.AddPanel(_panelLayerVer1, LocationSide.Left, 2); _locationManager.AddPanel(_panelLayerVer2, LocationSide.Left, 3); _locationManager.AddPanel(_panelLayerVer3, LocationSide.Left, 4); _locationManager.ReLocateAll(); }