private void listBoxClasses_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (listBoxClasses.SelectedItem != null)
            {
                string[] brokenLevel = listBoxClasses.SelectedItem.ToString().Split('(');
                if (brokenLevel.Count() == 2)
                {
                    className = brokenLevel[0].Trim();

                    Class nextClass = Class.findClass(className);
                    if (nextClass != null)
                    {
                        currentlyChosenLevel = nextClass.returnClassLevel(currentCharacter.findClassLevel(nextClass));
                        if (currentlyChosenLevel != null)
                        {
                            if (currentlyChosenLevel.returnOptions().Count() != 0)
                            {
                                comboBoxOptionalFeature.Items.Clear();
                                foreach (Feat feat in currentlyChosenLevel.returnOptions())
                                {
                                    comboBoxOptionalFeature.Items.Add(feat.returnName());
                                }
                            }
                            setDescription(currentlyChosenLevel);
                        }
                    }
                }
            }
        }
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     if (currentlyChosenLevel != null)
     {
         if (((currentlyChosenLevel.returnOptions().Count() != 0 && chosenFeat != null) || currentlyChosenLevel.returnOptions().Count() == 0) && (comboBoxAttribute.Items.Count == 0 || chosenAttribute != -1))
         {
             sendCharacterLevelUp(currentlyChosenLevel);
             Close();
         }
     }
 }