Ejemplo n.º 1
0
        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            OutputTypeViewModel outputTypeViewModel = value as OutputTypeViewModel;

            if (outputTypeViewModel == null)
            {
                return(OutputType.None);
            }

            return(outputTypeViewModel.Type);
        }
        public override bool Equals(object other)
        {
            OutputTypeViewModel outputTypeViewModel = other as OutputTypeViewModel;

            return(outputTypeViewModel?.Type == this.Type);
        }