public object Convert(object[] value, Type targetType, object parameter, CultureInfo culture) { string name = String.Empty; try { int valueID = -1; int parameterID = -1; if (value[0] != null && value[1] != null) { if (Int32.TryParse(value[0].ToString(), out valueID) && Int32.TryParse(value[1].ToString(), out parameterID) && valueID > 0 && parameterID > 0) { name = ParameterRepository.GetParameterValue(parameterID, valueID); } ; } ; } catch { }; return(name); }