Ejemplo n.º 1
0
 private void UpdateChilds()
 {
     if (m_parametre.ParametreFils as CParametreNiveauArbreGanttGroupe == null)
     {
         m_panelAddChildLevel.Visible = true;
         m_panelChild.Visible         = false;
     }
     else
     {
         m_panelAddChildLevel.Visible = false;
         m_panelChild.Visible         = true;
         m_panelChild.SuspendDrawing();
         foreach (Control ctrl in new ArrayList(m_panelChild.Controls))
         {
             m_extModeEdition.SetModeEdition(ctrl, TypeModeEdition.Autonome);
             m_panelChild.Controls.Remove(ctrl);
             ctrl.Visible = false;
             ctrl.Dispose();
         }
         CPanelEditGroupeGantt newPanel = new CPanelEditGroupeGantt();
         newPanel.DeleteFilsEventHandler += new EventHandler(newPanel_DeleteFilsEventHandler);
         m_panelChild.Controls.Add(newPanel);
         CWin32Traducteur.Translate(newPanel);
         newPanel.Dock = DockStyle.Fill;
         m_panelChild.ResumeDrawing();
         m_extModeEdition.SetModeEdition(newPanel, TypeModeEdition.EnableSurEdition);
         newPanel.LockEdition = LockEdition;
         newPanel.Init(m_parametre.ParametreFils as CParametreNiveauArbreGanttGroupe);
     }
 }
Ejemplo n.º 2
0
        public CResultAErreur MajChamps()
        {
            CResultAErreur result = CResultAErreur.True;

            if (m_txtFormule.Formule == null)
            {
                result.EmpileErreur(I.T("Incorrect group formula|20166"));
                return(result);
            }
            m_parametre.FormuleGroupe = m_txtFormule.Formule;
            m_parametre.Image         = m_imageSelect.Image;
            if (m_panelChild.Controls.Count != 0 && m_parametre.ParametreFils != null)
            {
                CPanelEditGroupeGantt panelFils = m_panelChild.Controls[0] as CPanelEditGroupeGantt;
                if (panelFils != null)
                {
                    result = panelFils.MajChamps();
                }
            }
            return(result);
        }