예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
        }