Nói luôn với các bác, em là dân tay ngang mới tập tành lập trình được khoảng 2 tháng nay thôi. Hiện nay, em đang làm việc với thầy, thầy có hướng dẫn một số bài tập cho em làm, nhưng bây giờ bí quá lên hỏi các bác, đừng gạch em nếu sai box nhé:

Bài toán: Vẽ một đồ thị theo file data (t và q) có sẵn (*.xml), sau đó, khi nhấp chuột vào đồ thị đó thì nó sẽ vẽ lại với t+delta t, và q+delta q.
Em dùng thằng DevExpress 12.1.8 nhé các bác, các bác hướng dẫn giùm em với. Em đã vẽ được đồ thị trong XAML rồi.

Mã:
using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Animation;using System.Windows.Shapes;using DevExpress.Xpf.Charts;using System.Xml.Linq;using DevExpress.XtraPrinting;  namespace DXSilverlightApplication1{     public partial class MainPage : UserControl    {        Cursor defCursor;        bool dragging = false;        static bool isPressed = false;        static DiagramCoordinates oldcoords = null;        List<PD> prodDataList = new List<PD>();         public MainPage()        {            int i = 1;            InitializeComponent();            if (diagram != null)            {                List<PD> dataSource = CreateDataSource();                // Series ProdData = new LineSeries2D ();                //ProdData.DataSource = dataSource;                //diagram.Series.Add(ProdData);                foreach (Series series in diagram.Series)                    if (i == 1)                    {                        series.DataSource = dataSource;                        i = i + 1;                    }                    else                        continue;            }        }         public class PD        {            double cum_time;            double rate;            public double CumTime { get { return cum_time; } }            public double Rate { get { return rate; } }             public PD(double cum_time, double rate)            {                this.cum_time = cum_time;                this.rate = rate;            }        }         List<PD> CreateDataSource()        {            XDocument document = XDocument.Load("prod_data.xml");            //List<PD> dataSource = new List<PD>();            if (document != null)            {                foreach (XElement element in document.Element("PDs").Elements())                {                    double cum_time = Convert.ToDouble(element.Element("t").Value);                    double rate = Convert.ToDouble(element.Element("q").Value);                    //dataSource.Add(new PD(cum_time, rate));                    prodDataList.Add(new PD(cum_time, rate));                }            }            //prodDataList = dataSource;            //return dataSource;\            return prodDataList;        }// Bây giờ em có biến prodDataList rồi, giờ muốn truy cập thằng prodDataList này để thay đổi giá trị như bài toán thì làm sao ạ?        private void prod_data_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)//.................... (cần làm tiếp chỗ này)