private void ExecuteAddToAssignedParticipationCommand(ParticipationListItem participation) { ShooterParticipation sp = new ShooterParticipation { ShooterId = UiShooter.ShooterId, ParticipationId = participation.ParticipationId }; _shooterParticipationDataStore.Create(sp); LoadAvailableParticipationList(); LoadAssignedParticipationList(); }
private void ExecuteAddToAssignedParticipationCommand(ParticipationListItem participation) { ShooterParticipation sp = new ShooterParticipation { ShooterId = UiShooter.ShooterId, ParticipationId = participation.ParticipationId }; try { _shooterParticipationDataStore.Create(sp); } catch (Exception e) { _shooterParticipationDataStore.Revert(); ReportException(e); } finally { LoadData(); } }
private bool CanExecuteAddtoAssignedParticipationCommand(ParticipationListItem participation) { return(participation != null && UiShooter != null); }
private void ExecuteAddToAssignedParticipationCommand(ParticipationListItem participation) { ShooterParticipation sp = new ShooterParticipation { ShooterId = UiShooter.ShooterId, ParticipationId = participation.ParticipationId }; try { _shooterParticipationDataStore.Create(sp); } catch (Exception e) { _shooterParticipationDataStore.Revert(); ReportException(e); } finally { LoadData(); } }
private bool CanExecuteAddtoAssignedParticipationCommand(ParticipationListItem participation) { return participation != null && UiShooter != null; }
private void ExecuteAddToAssignedParticipationCommand(ParticipationListItem participation) { ShooterParticipation sp = new ShooterParticipation { ShooterId = UiShooter.ShooterId, ParticipationId = participation.ParticipationId }; _shooterParticipationDataStore.Create(sp); LoadAvailableParticipationList(); LoadAssignedParticipationList(); }