public bool OnDisplayAddWordGlossesToFreeTrans(object commandObject, ref UIItemDisplayProperties display) { ISegment dummy1; int dummy2; display.Visible = display.Enabled = CanAddWordGlosses(out dummy1, out dummy2); return true; }