public void OnChildZOrderChanged(IDrawDesignControl itemControl) { IDrawingHolder h = _item as IDrawingHolder; if (h != null) { h.RefreshDrawingOrder(); DrawingPage.RefreshDrawingDesignControlZOrders(this, null); Form f = this.FindForm(); if (f != null) { f.Invalidate(); } } }
public void OnFinishLoad() { RefreshDrawingOrder(); if (_items != null) { if (_items != null && _items.Count > 0) { for (int i = 0; i < _items.Count; i++) { IDrawingHolder h = _items[i] as IDrawingHolder; if (h != null) { h.OnFinishLoad(); } } } } }
private void menu_sendToBack(object sender, EventArgs e) { MenuItem mi = sender as MenuItem; if (mi != null) { IDrawDesignControl ddc = mi.Tag as IDrawDesignControl; if (ddc != null) { IDrawingHolder h = ddc.Item.Holder; if (h != null) { h.SendObjectToBack(ddc.Item); } } Control c = mi.Tag as Control; if (c != null) { c.SendToBack(); makeControlChanged(c); } } }