public void RegisterRegionModifable(Control key, IRegionModifable regionModifable) { if (!regionModifables.ContainsKey(key)) { regionModifables.Add(key, regionModifable); } }
public void DrawBounds(object sender = null, EventArgs e = null) { foreach (Control key in regionModifables.Keys) { IRegionModifable regionModifable = regionModifables[key]; regionModifable.ModifyRegion(key); } }