public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            System.Diagnostics.Debugger.Break();
            ShowMessageWindow.ShowMessage(parameter.ToString(), "Convert");

            if ((values != null) && (values.Length == 3))
            {
                if ((values[2] != null) && (values[1] != values[2]))
                {
                    return(String.Format("{0} : {1}", values[1], values[2]));
                }
                else
                {
                    return(values[1].ToString());
                }
            }
            else
            {
                return(values);
            }
        }
        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            System.Diagnostics.Debugger.Break();
            ShowMessageWindow.ShowMessage(parameter.ToString(), "ConvertBack");

            if (value != null)
            {
                string s = value as string;
                if (s.Contains(" : "))
                {
                    return(s.Split(new string[] { " : " }, StringSplitOptions.None));
                }
                else
                {
                    return(s.Split(new string[] { " : " }, StringSplitOptions.None));
                }
            }
            else
            {
                return(new object[] { value });
            }
        }