public object Convert(object intRange_value, Type targetType, object parameter, CultureInfo culture)
        {
            IntRange ir = (IntRange)intRange_value;

            return(new Point(ir.Start_i, ir.Count));
        }
        // value - IntRange visibleCandlesRange
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            IntRange visibleCandlesRange = (IntRange)value;

            return(visibleCandlesRange.Count);
        }
Beispiel #3
0
 ///<summary>Determines whether the specified parameter intRange is Undefined.</summary>
 ///<seealso cref = "Undefined">Undefined</seealso>
 public static bool IsUndefined(IntRange intRange)
 {
     return(intRange.Start_i == int.MinValue && intRange.Count == int.MinValue);
 }
Beispiel #4
0
 ///<summary>Determines whether the specified parameter intRange is ContainingOnlyStart_i.</summary>
 ///<seealso cref = "CreateContainingOnlyStart_i">CreateContainingOnlyStart_i</seealso>
 public static bool IsContainsOnlyStart_i(IntRange intRange)
 {
     return(intRange.Count == int.MinValue && intRange.Start_i != int.MinValue);
 }
Beispiel #5
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'IntRange.IsContainsOnlyStart_i(IntRange)'
        public static bool IsContainsOnlyStart_i(IntRange intRange)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'IntRange.IsContainsOnlyStart_i(IntRange)'
        {
            return(intRange.Count == -6666);
        }
Beispiel #6
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'IntRange.Undefined'

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'IntRange.IsUndefined(IntRange)'
        public static bool IsUndefined(IntRange intRange)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'IntRange.IsUndefined(IntRange)'
        {
            return(intRange.Start_i == int.MinValue && intRange.Count == int.MinValue);
        }
Beispiel #7
0
 public CandleRangeChangeEventArgs(IntRange range)
 {
     CandleRange = range;
 }