private void FillEnhancementIconList()
        {
            int    index;
            string iconName;

            EnhancementIconListControl.Clear();
            foreach (EnhancementModel model in EnhancementModels)
            {
                EnhancementIconListControl.Add();
                index    = EnhancementIconListControl.Count() - 1;
                iconName = "Enhancements\\" + model.Icon;
                EnhancementIconListControl.SetIconControlImage(index, iconName);
            }
        }
        private void TextBoxChange(object sender, InputType type)
        {
            string newStringValue;
            int    enhancementIndex;

            enhancementIndex = EnhancementIconListControl.SelectedIndex;

            switch (type)
            {
            case InputType.SlotName:
            {
                newStringValue = SlotNameTextBox.Text;
                if (newStringValue != SlotModel.Name)
                {
                    SlotModel.Name    = newStringValue;
                    SlotRecordChanged = true;
                }
                break;
            }

            case InputType.SlotIcon:
            {
                newStringValue = SlotIconTextBox.Text;
                if (newStringValue != SlotModel.Icon)
                {
                    SlotModel.Icon    = newStringValue;
                    SlotRecordChanged = true;
                    UpdateSlotIcon(newStringValue);
                }
                break;
            }

            case InputType.SlotDescription:
            {
                newStringValue = SlotDescriptionHtmlEditor.Text;
                if (newStringValue != SlotModel.Description)
                {
                    SlotModel.Description = newStringValue;
                    SlotRecordChanged     = true;
                }
                break;
            }

            case InputType.EnhancementName:
            {
                newStringValue = EnhancementNameTextBox.Text;
                if (newStringValue != EnhancementModels[enhancementIndex].Name)
                {
                    EnhancementModels[enhancementIndex].Name = newStringValue;
                    EnhancementRecordChanged = true;
                }
                break;
            }

            case InputType.EnhancementIcon:
            {
                newStringValue = EnhancementIconTextBox.Text;
                if (newStringValue != EnhancementModels[enhancementIndex].Icon)
                {
                    EnhancementModels[enhancementIndex].Icon = newStringValue;
                    EnhancementRecordChanged = true;
                    EnhancementIconListControl.SetIconControlImage(enhancementIndex, "Enhancements\\" + newStringValue);
                    //Lets see if we need to update the slot icon with this enhancement
                    if (OptionalCheckBox.Checked == false)
                    {
                        if (enhancementIndex == 0)
                        {
                            UpdateSlotIcon(newStringValue);
                        }
                    }
                }
                break;
            }

            case InputType.RankDescription1:
            {
                newStringValue = RankDescriptionHE1.Text;
                if (newStringValue != RankModels[EnhancementIconListControl.SelectedIndex][0].Description)
                {
                    RankModels[EnhancementIconListControl.SelectedIndex][0].Description = newStringValue;
                    EnhancementRecordChanged = true;
                }
                break;
            }

            case InputType.RankDescription2:
            {
                newStringValue = RankDescriptionHE2.Text;
                if (newStringValue != RankModels[EnhancementIconListControl.SelectedIndex][1].Description)
                {
                    RankModels[EnhancementIconListControl.SelectedIndex][1].Description = newStringValue;
                    EnhancementRecordChanged = true;
                }
                break;
            }

            case InputType.RankDescription3:
            {
                newStringValue = RankDescriptionHE3.Text;
                if (newStringValue != RankModels[EnhancementIconListControl.SelectedIndex][2].Description)
                {
                    RankModels[EnhancementIconListControl.SelectedIndex][2].Description = newStringValue;
                    EnhancementRecordChanged = true;
                }
                break;
            }
            }
        }