Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the MicroChart class.
 /// </summary>
 public MicroChart()
 {
     this.SetStyle(ControlStyles.Selectable, false);
     _MicroChart = new MicroChartItem();
     _MicroChart.TextVisible = false;
     _MicroChart.MouseOverDataPointChanged += new EventHandler(MicroChartMouseOverDataPointChanged);
     this.HostItem = _MicroChart;
 }
Esempio n. 2
0
        public StartControl()
        {
            InitializeComponent();

            // Add self-updating chart to the sales tile
            MicroChartItem chart = new MicroChartItem();
            chart.ChartType = eMicroChartType.Column;
            chart.ChartWidth = salesTile.TileSize.Width - 26;
            chart.ChartHeight = salesTile.TileSize.Height - 30;
            chart.DataPoints = GetRandomDataPoints(false, 12);
            chart.TooltipValueFormatString = "C"; // Currency format for tooltips
            chart.ColumnChartStyle.PositiveBarColor = Color.White;
            salesTile.SubItems.Add(chart);
        }
Esempio n. 3
0
 /// <summary>
 /// Copies the MicroChartItem specific properties to new instance of the item.
 /// </summary>
 /// <param name="copy">New MicroChartItem instance.</param>
 internal void InternalCopyToItem(MicroChartItem copy)
 {
     CopyToItem(copy);
 }
Esempio n. 4
0
 /// <summary>
 /// Returns copy of the item.
 /// </summary>
 public override BaseItem Copy()
 {
     MicroChartItem objCopy = new MicroChartItem(m_Name);
     this.CopyToItem(objCopy);
     return objCopy;
 }