public void ReadEWEDatasourceFormId(EWEDatasourceDto EweDsDto, Action <string, Exception> completed) { _eweDsNameReadCompleted = completed; dsCtx = new AdminDatasourcesDomainContext(); InvokeOperation <string> ReadEweResult = dsCtx.ReadEWEDatasourceFormId(EweDsDto); ReadEweResult.Completed += new EventHandler(ReadEweResult_Completed); }
public string ReadEWEDatasourceFormId(EWEDatasourceDto EWEDsDto) { try { return(em.ReadEWEDatasourceFormId(EWEDsDto)); } catch (Exception ex) { throw; } }
/// <summary> /// Handles the Click event of the btnStep1Next control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs" /> instance containing the event data.</param> private void btnStep1Next_Click(object sender, System.Windows.RoutedEventArgs e) { DataBaseTypeEnum dbTypeSelected = (DataBaseTypeEnum)(Enum.Parse(typeof(DataBaseTypeEnum), cmbDBType.SelectedItem.ToString(), true)); if (ApplicationViewModel.Instance.IsEpiWebIntegrationEnabled && dbTypeSelected == DataBaseTypeEnum.SQLServer && (bool)chkEpiForm.IsChecked)//Only if integration is enabled. && for SQLServer { localDto.IsEpiInfoForm = true; EWEDatasourceDto EWEDsDTO = new EWEDatasourceDto(); EWEDsDTO.DatabaseName = localDto.Connection.DatabaseName; adminVM.ReadEWEDatasourceFormId(EWEDsDTO); adminVM.ReadEweFormIdCompletedEvent -= new EventHandler <SimpleMvvmToolkit.NotificationEventArgs <Exception> >(adminVM_ReadEweFormIdCompletedEvent); adminVM.ReadEweFormIdCompletedEvent += new EventHandler <SimpleMvvmToolkit.NotificationEventArgs <Exception> >(adminVM_ReadEweFormIdCompletedEvent); } else { localDto.IsEpiInfoForm = false; NavigateToStep2(); } }
public void ReadEWEDatasourceFormId(EWEDatasourceDto EweDSDto) { serviceAgent.ReadEWEDatasourceFormId(EweDSDto, ReadEweFormIdCompleted); }