public static BindingList<PrefixListRow> GetRowsFromTable(Table table)
 {
     BindingList<PrefixListRow> list = new BindingList<PrefixListRow>();
     for (int row = 0; row < table.GetNumRows(); row++)
     {
         PrefixListRow cl = new PrefixListRow();
         cl.Prefix = table.GetData(row, (int)TableColumns.PrefixList.Prefix);
         cl.Meaning = table.GetData(row, (int)TableColumns.PrefixList.Meaning);
         list.Add(cl);
     }
     return list;
 }
Пример #2
0
        public static BindingList <PrefixListRow> GetRowsFromTable(Table table)
        {
            BindingList <PrefixListRow> list = new BindingList <PrefixListRow>();

            for (int row = 0; row < table.GetNumRows(); row++)
            {
                PrefixListRow cl = new PrefixListRow();
                cl.Prefix  = table.GetData(row, (int)TableColumns.PrefixList.Prefix);
                cl.Meaning = table.GetData(row, (int)TableColumns.PrefixList.Meaning);
                list.Add(cl);
            }
            return(list);
        }