public void OnRowInserted(RowInsertedEvent evt)
 {
     rowEventRaisers.AddRange(CreateRaiserDefinitionsForRow(evt.Buttons, evt.Index));
     ElementInteractions.SetButtonStateBasedOnZeroIndex(evt.Buttons.MoveUp, evt.Index);
     ElementInteractions.SetButtonStateBasedOnBeingLastPositionInArray(evt.Buttons.MoveDown, evt.Index,
                                                                       evt.ListLength);
     if (evt.target is ListElement le)
     {
         ElementInteractions.SetStateBasedOnOption(evt.PropertyField, le.Options.EnableModify);
     }
 }
        public void OnReset(ListResetEvent evt)
        {
            rowEventRaisers.Clear();

            if (evt.target is ListElement listElement)
            {
                PopulateList(listElement);
                ElementInteractions.SetButtonStateBasedOnZeroIndex(
                    listElement.Controls.ClearList, listElement.SerializedProperty.arraySize);
            }
        }