SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
GraphWrapper.xaml.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Windows;
6 using System.Windows.Controls;
7 using System.Windows.Data;
8 using System.Windows.Documents;
9 using System.Windows.Input;
10 using System.Windows.Media;
11 using System.Windows.Media.Imaging;
12 using System.Windows.Navigation;
13 using System.Windows.Shapes;
14 using System.Drawing; //For colours
15 
16 namespace SeciControls.Graphing
17 {
21  public partial class GraphWrapper : UserControl, IUpdate
22  {
23  public GraphWrapper()
24  {
25  InitializeComponent();
26  }
27 
28  public void SetupGraph(Seci.Definitions.GraphDefinition graph)
29  {
30  Graph1.SetupGraph(graph);
31  }
32 
34  {
35  return Graph1.GraphDef;
36  }
37 
38  public void ClearGraphPoints()
39  {
40  Graph1.ClearAllPlotData();
41  }
42 
43  #region IUpdate Members
44 
45  public void UpdateControl()
46  {
47  Graph1.UpdateControl();
48  }
49 
50  #endregion
51  }
52 }
This class is used for serializing the graphs for saving in the configuration.
Interaction logic for GraphWrapper.xaml
void SetupGraph(Seci.Definitions.GraphDefinition graph)
Seci.Definitions.GraphDefinition GetGraphDefinition()