Exemplo n.º 1
0
        void UpdateCategoryData()
        {
            _categoryCollection.Clear();

            if (DataSource != null && !string.IsNullOrEmpty(CategoryMemberPath))
            {
                BindingValue eval = new BindingValue(CategoryMemberPath);

                foreach (object dataItem in this.DataSource)
                {
                    _categoryCollection.Add(eval.Eval(dataItem).ToString());
                }
            }
        }
Exemplo n.º 2
0
        void UpdateValueData()
        {
            _valueCollection.Clear();

            if (DataSource != null && !string.IsNullOrEmpty(ValueMemberPath))
            {
                BindingValue eval = new BindingValue(ValueMemberPath);

                foreach (object dataItem in this.DataSource)
                {
                    _valueCollection.Add(Convert.ToDouble(eval.Eval(dataItem)));
                }
            }
        }