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);
                }
            }
        }
Exemple #2
0
 public void SetPropositionTypeBonus( PropositionType type, PropositionClass _class, byte value )
 {
     propTypeBonuses[type, _class] = value;
 }
Exemple #3
0
 public void SetBraveFaithBonus( BraveFaithNeutral bfn, PropositionClass _class, byte value )
 {
     bfBonuses[bfn, _class] = value;
 }
Exemple #4
0
 public void SetBraveFaithBonus(BraveFaithNeutral bfn, PropositionClass _class, byte value)
 {
     bfBonuses[bfn, _class] = value;
 }
Exemple #5
0
 public void SetPropositionTypeBonus(PropositionType type, PropositionClass _class, byte value)
 {
     propTypeBonuses[type, _class] = value;
 }