Example #1
0
        private void AddProperty(string propertyName, string displayName, Color color)
        {
            ChartColorPropertyViewItem propertyViewItem = new ChartColorPropertyViewItem(propertyName, displayName, color);

            propertyViewItem.ColorChanged += new EventHandler(this.item_ColorChanged);
            this.ltvColorProperties.Items.Add((ListViewItem)propertyViewItem);
            this.defaultTemplate.Settings[propertyName] = color;
            this.propertyViewItems[propertyName]        = propertyViewItem;
        }
Example #2
0
        private void item_ColorChanged(object sender, EventArgs e)
        {
            ChartColorPropertyViewItem propertyViewItem = sender as ChartColorPropertyViewItem;

            this.SetProperty(propertyViewItem.PropertyName, propertyViewItem.Color);
            if (this.currentTemplate == null || this.updating)
            {
                return;
            }
            this.currentTemplate.Settings[propertyViewItem.PropertyName] = propertyViewItem.Color;
            ((Control)this.chart).Refresh();
        }
Example #3
0
 private void AddProperty(string propertyName, string displayName, Color color)
 {
     ChartColorPropertyViewItem propertyViewItem = new ChartColorPropertyViewItem(propertyName, displayName, color);
     propertyViewItem.ColorChanged += new EventHandler(this.item_ColorChanged);
     this.ltvColorProperties.Items.Add((ListViewItem)propertyViewItem);
     this.defaultTemplate.Settings[propertyName] = color;
     this.propertyViewItems[propertyName] = propertyViewItem;
 }