public override void ParameterizeAttributes() { SQLDB.ParameterizeAttribute("@HPRegen", HPRegenInput.Text); SQLDB.ParameterizeAttribute("@SPRegen", SPRegenInput.Text); SQLDB.ParameterizeAttribute("@SPConsumeRate", SPConsumeRateInput.Text); SQLDB.ParameterizeAttribute("@ComboDifficulty", ComboDifficultyInput.Text); SQLDB.ParameterizeAttribute("@Counter", CounterInput.Text); SQLDB.ParameterizeAttribute("@Reflect", ReflectInput.Text); SQLDB.ParameterizeAttribute("@DisabledToolType1", DisabledToolType1Data.SelectedInput(DisabledToolType1Input)); SQLDB.ParameterizeAttribute("@DisabledToolType2", DisabledToolType2Data.SelectedInput(DisabledToolType2Input)); SQLDB.ParameterizeAttribute("@ExtraTurns", ExtraTurnsInput.Text); SQLDB.ParameterizeAttribute("@TurnEnd1", TurnEnd1Input.Text); SQLDB.ParameterizeAttribute("@TurnEnd2", TurnEnd2Input.Text); SQLDB.ParameterizeAttribute("@TurnSequence", TurnSequenceInput.SelectedIndex.ToString()); SQLDB.ParameterizeAttribute("@RemoveByHit", RemoveByHitInput.Text); }
protected override void OnRead(SQLiteDataReader reader) { HPRegenInput.Text = reader["HPRegen"].ToString(); SPRegenInput.Text = reader["SPRegen"].ToString(); SPConsumeRateInput.Text = reader["SPConsumeRate"].ToString(); ComboDifficultyInput.Text = reader["ComboDifficulty"].ToString(); CounterInput.Text = reader["Counter"].ToString(); ReflectInput.Text = reader["Reflect"].ToString(); DisabledToolType1Input.SelectedIndex = DisabledToolType1Data.FindIndex(reader["DisabledToolType1"]); DisabledToolType2Input.SelectedIndex = DisabledToolType2Data.FindIndex(reader["DisabledToolType2"]); ExtraTurnsInput.Text = reader["ExtraTurns"].ToString(); TurnEnd1Input.Text = reader["TurnEnd1"].ToString(); TurnEnd2Input.Text = reader["TurnEnd2"].ToString(); TurnSequenceInput.SelectedIndex = int.Parse(reader["TurnSequence"].ToString()); RemoveByHitInput.Text = reader["RemoveByHit"].ToString(); }