Пример #1
0
 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (_convertBack != null)
     {
         return(_convertBack.Invoke(value, targetType, parameter, culture));
     }
     throw new NotImplementedException();
 }
Пример #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            try
            {
                return(convert.Invoke(value, targetType, parameter, culture));
            }
            catch (System.Exception ex)
            {
                string title = this.GetType().Name + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name;
                BalizaFacil.App.Instance.UnhandledException(title, ex);
            }

            return(null);
        }