private void UserStateItemClick(object sender, EventArgs e) { editor.AcceptLayoutForControl(Layouts.FirstOrDefault(state => state.Id == Convert.ToInt32(((DXMenuItem)sender).Tag))); }