private void AddLayer(DataGridLayer layer, Panel parent) { layer.DetachUI(parent); layer.Owner = this; layer.AttachUI(parent); }
private static void RemoveLayer(DataGridLayer layer, Panel parent) { layer.DetachUI(parent); layer.Owner = null; }