private void __registerParent(IQGControl sender) { if (this.ParentLayer == null && this.Vertex1.IsInitialized && this.Vertex2.IsInitialized) { IQGLayer.FindNearestCommonLayer(this.Vertex1, this.Vertex2).ChildControls.Add(this); } }
void IQGControl.SetParentLayer(IQGLayer parentLayer) => this.ParentLayer = parentLayer;