private void ShowButtonByEditableProperties(Button editButton, object item) { if (PropertyEditor.HasEditableProperties(item.GetType())) { editButton.Show(); } else { editButton.Hide(); } }