//----------------------------------------------------------------------- private static void itemEditSmartField_Click(object sender, EventArgs e) { ToolStripMenuItem item = sender as ToolStripMenuItem; CTagMenu tag = item != null ? item.Tag as CTagMenu : null; if (tag != null && tag.SmartField != null) { CSmartField smartField = tag.SmartField.GetObjetInContexte(CSc2iWin32DataClient.ContexteCourant) as CSmartField; smartField.BeginEdit(); if (smartField != null) { CFormEditeSmartField.EditeSmartFieldAndCommit(smartField); } } }