Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the DlmsTypeWizardDlg class.
        /// </summary>
        public IEC62056TypeWizardDlg(GXTable table)
        {
            InitializeComponent();

            System.Threading.Thread.CurrentThread.CurrentUICulture = System.Threading.Thread.CurrentThread.CurrentCulture;
            UpdateResources();
            m_Table = (GXIEC62056Table)table;
        }
 private void PopulateTree(GXProperty target, GXTable table)
 {
     TreeNode propNode = new TreeNode(Resources.None);            
     this.DataSourceTree.Nodes.Add(propNode);    
     TreeNode selNode = null;
     foreach (GXProperty prop in table.Columns)
     {
         propNode = new TreeNode(prop.DisplayName, 3, 3);
         propNode.Tag = prop;
         this.DataSourceTree.Nodes.Add(propNode);                
         if (target == prop)
         {
             selNode = propNode;
         }
     }
     if (selNode != null)
     {
         this.DataSourceTree.SelectedNode = selNode;
     }
     else
     {
         this.DataSourceTree.SelectedNode = this.DataSourceTree.Nodes[0];
     }
 }
 /// <summary>
 /// If editor is used to shown table columns.
 /// </summary>
 public GXDataIOSourceDialog(GXProperty target, GXTable table)
 {
     InitializeComponent();
     PopulateTree(target, table);
 }