Ejemplo n.º 1
0
 public static void AddChartBar(string rowText, object barValue, DateTime fromTime, DateTime toTime, Color color, Color hoverColor, int rowIndex, int datasetIndex,
     bool isSetup, bool isConstraintViolation, ref List<ChartBarDate> bars, Font rowTextFont, int barStartLeft, System.Windows.Forms.Control ths)
 {
     ChartBarDate bar = new ChartBarDate();
     bar.Text = rowText;
     bar.Value = barValue;
     bar.StartValue = fromTime;
     bar.EndValue = toTime;
     bar.color = color;
     bar.HoverColor = hoverColor;
     bar.RowIndex = rowIndex;
     bar.DataSetIndex = datasetIndex;
     bar.IsSetup = isSetup;
     bar.IsConstraintViolation = isConstraintViolation;
     bars.Add(bar);
     SetBarStartLeft(rowText, rowTextFont, barStartLeft, ths);
 }
Ejemplo n.º 2
0
        public static void AddChartBar(string rowText, object barValue, DateTime fromTime, DateTime toTime, Color color, Color hoverColor, int rowIndex, int datasetIndex,
                                       bool isSetup, bool isConstraintViolation, ref List <ChartBarDate> bars, Font rowTextFont, int barStartLeft, System.Windows.Forms.Control ths)
        {
            ChartBarDate bar = new ChartBarDate();

            bar.Text                  = rowText;
            bar.Value                 = barValue;
            bar.StartValue            = fromTime;
            bar.EndValue              = toTime;
            bar.color                 = color;
            bar.HoverColor            = hoverColor;
            bar.RowIndex              = rowIndex;
            bar.DataSetIndex          = datasetIndex;
            bar.IsSetup               = isSetup;
            bar.IsConstraintViolation = isConstraintViolation;
            bars.Add(bar);
            SetBarStartLeft(rowText, rowTextFont, barStartLeft, ths);
        }