//---------------------------------------------------------------------------------------- void itemSousType_Click(object sender, EventArgs e) { if (m_gestionnaireModeEdition.ModeEdition) { ToolStripMenuItem item = sender as ToolStripMenuItem; CTypeProjet type = item != null ? item.Tag as CTypeProjet : null; if (type != null) { if (Projet.IsDefiniPar(type)) { Projet.RemoveSubType(type); } else { Projet.AddSubType(type); } } m_PanelChamps.ElementEdite = Projet; } RefreshLinkSousTypes(); }