public RaceAndNameSelectorForm(CharacterCreator characterCreator)
        {
            InitializeComponent();
            CharacterCreator = characterCreator;

            raceCombo.Items.Add(Race.Dwarf.ToString());
            raceCombo.Items.Add(Race.Elf.ToString());
            raceCombo.Items.Add(Race.Halfling.ToString());
            raceCombo.Items.Add(Race.Human.ToString());

            //if race and name prevously set then ensure the controls contain those previous values
            if (characterCreator.characterRace != 0)
            {
                //index is the numeric value of the enum - 1 as the index is not zero based
                raceCombo.SelectedIndex = (int)characterCreator.characterRace - 1;
            }

            if (!String.IsNullOrEmpty(characterCreator.characterName))
            {
                nameText.Text = characterCreator.characterName;
            }
        }
        public ClassSelectorForm(CharacterCreator characterCreator)
        {
            InitializeComponent();
            CharacterCreator = characterCreator;
            DisplayAttributes(characterCreator.originalAttributes);

            classSuggestionLabel.Text = characterCreator.GetSuggestedClass();

            //if the character does not have an assigned class then fighter will be selected by default
            //if the character has previously been assigned a class then that class will be selected.
            if (characterCreator.classType == 0)
            {
                classType            = ClassType.Fighter;
                fighterRadio.Checked = true;
            }
            else
            {
                classType = characterCreator.classType;
                CheckAppropriateClassRadioButton();
            }

            SetClassSelectorDescription();
            SetPrimeRequisiteDescripton();
        }
 public AttributeAmenderForm(CharacterCreator createCharacter)
 {
     InitializeComponent();
     CharacterCreator = createCharacter;
     DisplayAttributes(CharacterCreator.originalAttributes);
 }
 public CharacterGeneratorForm()
 {
     InitializeComponent();
     characterCreator = new CharacterCreator();
     EnableButtons(true);
 }