private TableIO initializeShield() { ItemShieldRecordManager itemRecordManager = new ItemShieldRecordManager(this); TableIO tableIO = new TableIO(this, itemRecordManager); DataBinding dataBinding; dataBinding = tableIO.bind(reactorCapacityTxt, Net7.Table_item_shield._cap_100, "Capacity"); dataBinding.addValidation(new ValidateInteger()); dataBinding.addValidation(new ValidateNumericGreaterEqual(0)); dataBinding = tableIO.bind(reactorRecharge100Txt, Net7.Table_item_shield._recharge_100, "Recharge 100%"); dataBinding.addValidation(new ValidateNumericGreaterEqual(0)); dataBinding = tableIO.bind(null, Net7.Table_item_shield._energy_100, ""); dataBinding = tableIO.bind(null, Net7.Table_item_shield._range_100, ""); // The actual field is unimportant. All that matters is that we get a call to RecordManager tableIO.bind(raceRestrictionsLbl, Net7.Table_item_shield._rest_race, ""); tableIO.bind(professionRestrictionsLbl, Net7.Table_item_shield._rest_prof, ""); tableIO.initialize(Net7.Tables.item_shield.ToString(), Net7.Table_item_shield._item_id, Database.Database.getQueryShield()); return(tableIO); }
private TableIO initializeShield() { ItemShieldRecordManager itemRecordManager = new ItemShieldRecordManager(this); TableIO tableIO = new TableIO(this, itemRecordManager); DataBinding dataBinding; dataBinding = tableIO.bind(reactorCapacityTxt, Net7.Table_item_shield._cap_100, "Capacity"); dataBinding.addValidation(new ValidateInteger()); dataBinding.addValidation(new ValidateNumericGreaterEqual(0)); dataBinding = tableIO.bind(reactorRecharge100Txt, Net7.Table_item_shield._recharge_100, "Recharge 100%"); dataBinding.addValidation(new ValidateNumericGreaterEqual(0)); dataBinding = tableIO.bind(null, Net7.Table_item_shield._energy_100, ""); dataBinding = tableIO.bind(null, Net7.Table_item_shield._range_100, ""); // The actual field is unimportant. All that matters is that we get a call to RecordManager tableIO.bind(raceRestrictionsLbl, Net7.Table_item_shield._rest_race, ""); tableIO.bind(professionRestrictionsLbl, Net7.Table_item_shield._rest_prof, ""); tableIO.initialize(Net7.Tables.item_shield.ToString(), Net7.Table_item_shield._item_id, Database.Database.getQueryShield()); return tableIO; }