private void m_dataGrid_CellEndEdit(object sender, DataGridViewCellEventArgs e) { if (m_actorInformationViewModel.ValidateActor(e.RowIndex) == VoiceActorInformationViewModel.ActorValidationState.Valid) { SaveVoiceActorInformation(); } }
private void m_dataGrid_CellEndEdit(object sender, DataGridViewCellEventArgs e) { // PG-639: has the new row been removed by m_dataGrid.CancelEdit? if (e.RowIndex == m_actorInformationViewModel.Actors.Count) { return; } if (m_actorInformationViewModel.ValidateActor(e.RowIndex) == VoiceActorInformationViewModel.ActorValidationState.Valid) { SaveVoiceActorInformation(); } }