private void CopyFromRow(int destRowIndex, DataGridViewRow source) { PropositionClass destRowClass = (PropositionClass)destRowIndex; int sourceRowIndex = source.Index; foreach (PropositionType type in (PropositionType[])Enum.GetValues(typeof(PropositionType))) { if (propTypeBonuses.ContainsKey(Tuple.From(type, destRowClass))) { propTypeBonuses[type, destRowClass] = (byte)(dataGridView1[(int)type, (int)sourceRowIndex].Value); } } foreach (BraveFaithNeutral bfn in (BraveFaithNeutral[])Enum.GetValues(typeof(BraveFaithNeutral))) { if (bfnBonuses.ContainsKey(Tuple.From(bfn, destRowClass))) { bfnBonuses[bfn, destRowClass] = (byte)(dataGridView1[(int)bfn - 1 + braveColumn.Index, (int)sourceRowIndex].Value); } } }
public void SetPropositionTypeBonus( PropositionType type, PropositionClass _class, byte value ) { propTypeBonuses[type, _class] = value; }
public void SetBraveFaithBonus( BraveFaithNeutral bfn, PropositionClass _class, byte value ) { bfBonuses[bfn, _class] = value; }
public void SetBraveFaithBonus(BraveFaithNeutral bfn, PropositionClass _class, byte value) { bfBonuses[bfn, _class] = value; }
public void SetPropositionTypeBonus(PropositionType type, PropositionClass _class, byte value) { propTypeBonuses[type, _class] = value; }