private void cmdRollSpell_Click(object sender, EventArgs e)
 {
     if (this._objParent is frmGMDashboard)
     {
         frmGMDashboard dash = this._objParent as frmGMDashboard;
         dash.DiceRoller.Clear();
         dash.DiceRoller.NumberOfDice = this.Spell.DicePool;
         dash.DiceRoller.Limit        = nudDram.Value > 0 ? (int)nudDram.Value : (int)nudForce.Value;
         dash.DiceRoller.EdgeUse      = DiceRollerControl.EdgeUses.None;
         dash.DiceRoller.NumberOfEdge = Convert.ToInt32(((CharacterAttrib)dash.CurrentNPC.EDG).TotalValue);
     }
 }
 private void btnDrain_Click(object sender, EventArgs e)
 {
     if (_objParent is frmGMDashboard)
     {
         frmGMDashboard dash = this._objParent as frmGMDashboard;
         dash.DiceRoller.Clear();
         dash.DiceRoller.NumberOfDice = DrainResist;
         dash.DiceRoller.Limit        = nudDram.Value > 0 ? (int)nudDram.Value : (int)nudForce.Value;
         dash.DiceRoller.EdgeUse      = DiceRollerControl.EdgeUses.None;
         dash.DiceRoller.NumberOfEdge = Convert.ToInt32(((CharacterAttrib)dash.CurrentNPC.EDG).TotalValue);
         dash.DiceRoller.Threshold    = Spell.GetDrainValue((int)nudForce.Value);
     }
 }