Exemple #1
0
 private void OnSDModelDelete(object sender, SimulateDataModelEventArgs e)
 {
     foreach (SimulateDataChartModel sdcmodel in VChart.CursorCollection())
     {
         VChart.CursorRemoveValue(sdcmodel.SDModel);
     }
 }
Exemple #2
0
 private void OnSDModelCopy(object sender, SimulateDataModelEventArgs e)
 {
     copysdmodels.Clear();
     copystart = e.TimeStart;
     copyend   = e.TimeEnd;
     foreach (SimulateDataChartModel sdcmodel in VChart.CursorCollection())
     {
         SimulateDataModel sdmodel = sdcmodel.SDModel.Clone();
         copysdmodels.Add(sdmodel);
     }
 }
Exemple #3
0
        private void SaveXml(string filename, int timestart, int timeend)
        {
            XDocument xdoc         = new XDocument();
            XElement  node_Root    = new XElement("SimuDatas");
            XElement  node_SDModel = null;

            foreach (SimulateDataChartModel sdcmodel in VChart.CursorCollection())
            {
                SimulateDataModel sdmodel = sdcmodel.SDModel;
                node_SDModel = new XElement("SimuDataNode");
                sdmodel.SaveXml(node_SDModel, timestart, timeend);
                node_Root.Add(node_SDModel);
            }
            xdoc.Add(node_Root);
            xdoc.Save(filename);
        }