public void GetFilter() { filterTable = Ss.CreateNpcDataTableWithMd(SsAgrTable.Md); // row for min NpcDataRow filterRow = filterTable.NewRow(); filterTable.Rows.Add(filterRow); // row for max filterRow = filterTable.NewRow(); filterTable.Rows.Add(filterRow); }
public static void FillSsAgrTable1(NpcDataTable table, Dictionary <String, String> fs = null) { DataTable dt = HomeData.Agrs.F1GetAgrsTable(fs); foreach (DataRow dr in dt.Rows) { NpcDataRow row = table.NewRow(); foreach (NpcDataColumn column in table.Columns) { String dbName = (String)column.ExtendedProperties["dbName"]; String columnName = (String)column.ColumnName; row[columnName] = dr[dbName]; } table.Rows.Add(row); } }