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);
        }
示例#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);
 }
示例#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);
 }
示例#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);
        }
示例#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);
        }
示例#7
0
 public CandleRangeChangeEventArgs(IntRange range)
 {
     CandleRange = range;
 }