private void cbActionType_SelectedIndexChanged(object sender, EventArgs e) { pgActionProperties.SelectedObject = SelectedActionItem.ActionType == ActionTypesList[cbActionType.SelectedIndex] ? SelectedActionItem.Clone() : ActionTypesList[cbActionType.SelectedIndex].ToInstance(); }