Exemple #1
0
 public NpcDataView(NpcDataTable table, String rowFilter)
 {
     Columns   = table.Columns;
     RowFilter = rowFilter;
     Rows      = new NpcDataRows();
     foreach (NpcDataRow oldRow in table.Rows)
     {
         if (((String)oldRow[1]).IndexOf(rowFilter) >= 0)
         {
             NpcDataRow newRow = new NpcDataRow(table);
             Rows.Add(newRow);
             for (int i = 0; i < Columns.Count; i++)
             {
                 newRow[i] = oldRow[i];
             }
         }
     }
 }
Exemple #2
0
        public NpcDataRow NewRow()
        {
            NpcDataRow row = new NpcDataRow(this);

            return(row);
        }