Beispiel #1
0
 private void OnItemClicked(object sender, PieChart.PieChartItemEventArgs e)
 {
   if (e.Item.Tag == null || (bool)e.Item.Tag == true)
   {
     e.Item.Offset += 50;
     e.Item.Tag = false;
   }
   else
   {
     e.Item.Offset = Math.Max(0, e.Item.Offset - 50);
     e.Item.Tag = true;
   }
 }
Beispiel #2
0
 private void OnItemFocusChanging(object sender, PieChart.PieChartItemFocusEventArgs e)
 {
   if (e.NewItem != null && e.NewItem.Text != null)
     this.Text = "PieChartTest - " + e.NewItem.Text;
   else
     this.Text = "PieChartTest - [no item focused]";
 }
Beispiel #3
0
        private void PieChart1_ItemClicked(object sender, PieChart.PieChartItemEventArgs e)
        {
            //if (e.Item.Tag == null || (bool)e.Item.Tag == true)
            //{
            //    e.Item.Offset += 50;
            //    e.Item.Tag = false;
            //}
            //else
            //{
            //    e.Item.Offset = Math.Max(0, e.Item.Offset - 50);
            //    e.Item.Tag = true;
            //}

            string itemname = e.Item.Text;

            foreach (DataGridViewRow row in dataGridViewX1.Rows)
            {
                bool rowfound = false;
                foreach (DataGridViewCell cell in row.Cells)
                {
                    if (cell.Value.ToString() == itemname)
                    {
                        rowfound = true;
                        cell.Selected = true;
                        break;
                    }
                }
                if (rowfound)
                {
                    break;
                }
            }
        }
 /// <summary>
 /// Constructs a new instance of PieChartItemStyle.
 /// </summary>
 /// <param name="container">The control that contains the style.</param>
 internal PieChartStyle(PieChart container)
 {
   this.container = container;
 }
Beispiel #5
0
 public ItemCollectionProxy(PieChart proxy)
 {
   AddProxyObject(proxy);
 }