public override void BringToFront(I2iObjetGraphique child) { if (child is IObjetDeProcess) { IObjetDeProcess ele = (IObjetDeProcess)child; if (m_ordreZ.Contains(ele)) { m_ordreZ.Remove(ele); } m_ordreZ.Add(ele); } }
public override void FrontToBack(I2iObjetGraphique child) { if (child is IObjetDeProcess) { IObjetDeProcess ele = (IObjetDeProcess)child; if (m_ordreZ.Contains(ele)) { m_ordreZ.Remove(ele); } m_ordreZ.Insert(0, ele); } }
public static bool EditeObjet(IObjetDeProcess obj) { Type tp = (Type)m_tableEditeurs[obj.GetType()]; if (tp == null) { return(true); } CFormEditObjetDeProcess form = (CFormEditObjetDeProcess)Activator.CreateInstance(tp); form.ObjetEdite = obj; bool bResult = form.ShowDialog() == DialogResult.OK; form.Dispose(); return(bResult); }