Example #1
0
 private void LoadAvgNDVISetted()
 {
     _tree.Nodes.Clear();
     foreach (NDVISettingItem item in _settingList)
     {
         RadTreeNode node = new RadTreeNode(item.Name);
         node.Tag = item;
         _tree.Nodes.Add(node);
     }
     if (_tree.Nodes.Count != 0)
     {
         _tree.SelectedNode = _tree.Nodes[0];
     }
     _tree.ExpandAll();
 }
 private void LoadUserDefinedRegion()
 {
     _tree.Nodes.Clear();
     _region = ThemeGraphRegionSetting.GetThemeGraphRegion(_region.ProductIdentify);
     PrjEnvelopeItem[] items = _region.PrjEnvelopeItems;
     if (_region.PrjEnvelopeItems != null && _region.PrjEnvelopeItems.Length != 0)
     {
         _items = new List <PrjEnvelopeItem>(_region.PrjEnvelopeItems);
     }
     foreach (PrjEnvelopeItem item in _items)
     {
         RadTreeNode node = new RadTreeNode(item.Name);
         node.Tag = item;
         _tree.Nodes.Add(node);
     }
     if (_tree.Nodes.Count != 0)
     {
         _tree.SelectedNode = _tree.Nodes[0];
     }
     _tree.ExpandAll();
 }
        /// <summary>
        /// Loads the tree COM port.
        /// </summary>
        /// <param name="treeView">The tree view.</param>
        private void LoadTreeComPort(RadTreeView treeView)
        {
            treeView.Nodes.Clear();
            foreach (var d in this.definitionList)
            {
                var definitionNode = treeView.Nodes.Add(d.Name);
                foreach (var p in this.PortList)
                {
                    if (p.ActiveParameterDefinition.Id != d.Id)
                    {
                        continue;
                    }

                    var portNode = definitionNode.Nodes.Add(p.PortName);
                    portNode.Text = string.Format("{0} [{1}]", p.PortName, p.TestStationId);
                    if (p.IsActive == false)
                    {
                        portNode.ForeColor = Color.WhiteSmoke;
                    }
                }
            }

            treeView.ExpandAll();
        }
Example #4
0
 internal void ExpandAll()
 {
     batchTemplateTree.ExpandAll();
 }