/// <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;
		}
示例#2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public GXTableEventArgs(GXTable table, TableStates status, int index, List<object[]> rows)
     : base(table)
 {
     Rows = rows;
     Status = status;
     Index = index;
 }        
		/// <summary>
		/// Creates a new instance of all protocol addin GXTable Types.
		/// </summary>
        public GXTable[] GetTables(object parent)
        {
			Type[] types = this.GetTableTypes(parent);
            GXTable[] tables = new GXTable[types.Length];
            for (int pos = 0; pos != types.Length; ++pos)
            {
                tables[pos] = Activator.CreateInstance(types[pos]) as GXTable;
            }
            return tables;
        }
        private void ShowAvailableTable(GXTable table, TreeNode root)
        {
#if DEBUG
            m_ObjectIDs.Add(table.ID, table);
#endif //DEBUG
            System.Diagnostics.Debug.Assert(DeviceToTreeNode[table] == null);
            //If device ID is nill.
            ulong id = table.ID;
            System.Diagnostics.Debug.Assert((id >> 16) != 0);
            //If table ID is nill.
            System.Diagnostics.Debug.Assert((id & 0xFFFF) != 0);
            TreeNode node = root.Nodes.Add(table.DisplayName);
            node.Tag = table;
            node.SelectedImageIndex = node.ImageIndex = (int)DeviceImageType.DeviceTable;
            DeviceToTreeNode[table] = node;
        }