Example #1
0
 public void TestGetChildOPCDataNodes01()
 {
     OPCDataSelectorModel oPCDataSelectorModel = OPCDataSelectorModelFactory.CreateOPCDataSelectorModel01();
     string parentNode    = "12345678";
     string opcServerName = "TransactiveDatasource";
     //TODO Stub
     List <EtyOPCDataNode> list = oPCDataSelectorModel.GetChildOPCDataNodes(parentNode, opcServerName);
 }
Example #2
0
 /// <summary>
 /// Loads the child data node of the selected data node.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void treeOpcItems_AfterSelect(object sender, TreeViewEventArgs e)
 {
     System.Windows.Forms.TreeView treeOpcItems = (System.Windows.Forms.TreeView)sender;
     if (treeOpcItems.SelectedNode.Nodes.Count < 1)
     {
         List <EtyOPCDataNode> childDataNodes = m_model.GetChildOPCDataNodes(treeOpcItems.SelectedNode.Tag.ToString(), m_currentOpcServerName);
         m_view.AddTreeNode(childDataNodes, treeOpcItems.SelectedNode.Nodes);
     }
 }