public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return(Binding.DoNothing);
            }

            if (value.GetType() == typeof(IntPtr))
            {
                return(IntPtrToStringConverter.ConvertStringToIntPtr((string)value));
            }
            return(System.Convert.ChangeType(value, targetType));
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return(Properties.Resources.strConversionError);
            }

            if (value.GetType() == typeof(IntPtr))
            {
                return(IntPtrToStringConverter.ConvertIntPtrToString(( IntPtr )value));
            }
            return(value.ToString());
        }