public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == null || !value.GetType().Equals(typeof(PumpPhase)))
            {
                return(AppResource.Stimulation);
            }

            PumpPhase pumpPhase = (PumpPhase)value;

            return(pumpPhase == PumpPhase.Stimulation ? AppResource.Stimulation : AppResource.Expression);
        }
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == null || !value.GetType().Equals(typeof(PumpPhase)))
            {
                return("icon_simulation");
            }

            PumpPhase pumpPhase = (PumpPhase)value;

            return(pumpPhase == PumpPhase.Stimulation ? "icon_simulation" : "icon_phase");
        }