private void SetModificationState(StockSplitViewModel vm, ModificationStates state)
        {
            if (SelectedStockSplit != null && ModificationState == ModificationStates.Edit)
                SelectedStockSplit.UndoChanges();

            ModificationState = state;
            SelectedStockSplit = vm;
            SelectedStockSplit.ReevaluateOnDirtyStateAndValidationChanges(SaveCommand);
        }
        private void SetModificationState(GeneralMeetingViewModel vm, ModificationStates state)
        {
            if (SelectedGeneralMeeting != null && ModificationState == ModificationStates.Edit)
                SelectedGeneralMeeting.UndoChanges();

            ModificationState = state;
            SelectedGeneralMeeting = vm;
            SelectedGeneralMeeting.ReevaluateOnDirtyStateAndValidationChanges(SaveCommand);
        }