Beispiel #1
0
        public void LoadSpell(object sender, System.EventArgs e)
        {
            Spells newSpell = null;

            if (this.NameInput.Text.Length > 0)
            {
                newSpell = newData.FindSpell(this.NameInput.Text);
            }

            if (newSpell != null)
            {
                this.LevelInput.Text       = newSpell.Level.ToString();
                this.PageNum.Text          = newSpell.PageNum.ToString();
                this.School.Text           = newSpell.School;
                this.CastInput.Text        = newSpell.CastTime;
                this.RangeInput.Text       = newSpell.Range;
                this.DurationInput.Text    = newSpell.Duration;
                this.RitualInput.Checked   = newSpell.Ritual;
                this.Concentration.Checked = newSpell.Concentration;
                this.VerbalInput.Checked   = newSpell.Verbal;
                this.SomaticInput.Checked  = newSpell.Somatic;
                if (newSpell.Material != null)
                {
                    this.MaterialCheck.Checked = true;
                    this.MaterialInput.Text    = newSpell.Material;
                }
                this.InfoInput.Text = newSpell.Info;
                Loaded      = true;
                LoadedSpell = newSpell;
            }
        }
Beispiel #2
0
 private void SpellChange(object sender, System.EventArgs e)
 {
     if (this.FirstLetter.Text.Length > 0)
     {
         int letter = char.ToUpper(this.FirstLetter.Text[0]) - 64;
         this.newSpell = newData.FindSpell(this.SpellName.Text);
     }
 }