public DLSettingDto GetSettings() { ModuleProc PROC = new ModuleProc(this.DYN_MODULE_NAME, "GetSettings"); DLSettingDto result = new DLSettingDto(); try { using (Database db = DbFactory.OpenDB(_connectionString)) { DataRow dr = db.ExecuteDataset(CommandType.StoredProcedure, "dbo.rsp_EBS_GetInitialSettings").GetDataRow(0, 0); result.IsEnabled = TypeSystem.GetValueBool(dr["IsEBSEnabled"].ToString()); result.SendDataToEBS = TypeSystem.GetValueBool(dr["SendDataToEBS"].ToString()); result.EBSEndPointURL = dr["EBSEndPointURL"].ToString(); result.EBSVersion = dr["EBSVersion"].ToString(); } } catch (Exception ex) { Log.Exception(PROC, ex); } return(result); }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return(TypeSystem.GetValueBool(value) == false ? Visibility.Visible : Visibility.Collapsed); }