using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Data; namespace Tango.MachineStudio.Technician.Converters { /// /// Converts number of seconds to graph FIFO capacity. /// /// public class SecondsToGraphPointsConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { double arrLength = double.Parse(parameter.ToString()); return Helpers.GraphsHelper.GetMaxPoints(arrLength); } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return value; } } }