public FormulaXFormat(double Days100Pixel, string Interval, string XFormat)
 {
     this.xCursorFormat = "yyyy-MM-dd dddd";
     this.days100Pixel  = Days100Pixel;
     this.interval      = DataCycle.Parse(Interval);
     this.xFormat       = XFormat;
 }
 public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
 {
     if (value is string)
     {
         return(DataCycle.Parse((string)value));
     }
     return(base.ConvertFrom(context, culture, value));
 }
Exemple #3
0
 public FormulaXFormat(double Days100Pixel, string Interval, string XFormat) : this()
 {
     this.days100Pixel = Days100Pixel;
     this.interval     = DataCycle.Parse(Interval);
     this.xFormat      = XFormat;
 }