Example #1
0
        private void LoadXml(string filename, int timestart, int timeend)
        {
            XDocument xdoc      = XDocument.Load(filename);
            XElement  node_Root = xdoc.Element("SimuDatas");
            IEnumerable <XElement> node_SDModels = node_Root.Elements("SimuDataNode");

            foreach (XElement node_SDModel in node_SDModels)
            {
                string name = (string)(node_SDModel.Element("Name"));
                foreach (SimulateDataChartModel sdcmodel in VChart.SDCModels)
                {
                    SimulateDataModel sdmodel = sdcmodel.SDModel;
                    if (sdmodel.Name.Equals(name))
                    {
                        VChart.RemoveValue(sdmodel, timestart, timeend);
                        sdmodel.LoadXml(node_SDModel, timestart, timeend);
                        break;
                    }
                }
            }
            VChart.UpdateChart();
        }
Example #2
0
 public void Update()
 {
     VList.Update();
     VChart.Update();
     VChart.UpdateChart();
 }