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 EnhancementAddButton_Click(object sender, EventArgs e) { if (DataHasChangedWarning() == false) { return; } AllowChangeEvents = false; //Lets add a new EnhancementModel to our Model list AddEnhancementModel(); EnhancementIconListControl.Add(); EnhancementIconListControl.SelectedIndex = EnhancementIconListControl.Count() - 1; AddRankModel(EnhancementIconListControl.SelectedIndex); PopulateEnhancementFields(); PopulateRankFields(); AllowChangeEvents = true; NewEnhancementRecord = true; EnhancementRecordChanged = true; }