public bool SetSourceData(SourceData sourceData, SourceDataFileDescriptor sourceDataFileDescriptor) { CodeContract.Requires(sourceData != null); CodeContract.Requires(sourceDataFileDescriptor != null); try { SetSourceDataInternal( sourceData, sourceDataFileDescriptor, null, false); } catch (Exception ex) { Logger.LogError(Message.Election_SetSourceDataFailed, ex); return(false); } RaiseStateChanged(); Logger.LogInfo( Message.Election_SetSourceDataSucceeded, SourceData.Uik, SourceData.ElectionDate.ToString("dd.MM.yyyy"), SourceData.GetVotingModeStartTime(VotingMode.Main), SourceData.GetVotingModeStartTime(VotingMode.Portable)); return(true); }