Beispiel #1
0
 public void UpdateView(AllSkillSets skills)
 {
     if (ourContext != FFTPatch.Context)
     {
         ourContext = FFTPatch.Context;
         cbSkillSet = null;
     }
     skillSetListBox.SelectedIndexChanged -= skillSetListBox_SelectedIndexChanged;
     skillSetListBox.DataSource            = skills.SkillSets;
     skillSetListBox.SelectedIndexChanged += skillSetListBox_SelectedIndexChanged;
     skillSetListBox.SelectedIndex         = 0;
     skillSetEditor.SkillSet = skillSetListBox.SelectedItem as SkillSet;
 }
Beispiel #2
0
 public void UpdateView(AllSkillSets skills, Context context)
 {
     if (ourContext != context)
     {
         ourContext = context;
         cbSkillSet = null;
     }
     skillSetListBox.SelectedIndexChanged -= skillSetListBox_SelectedIndexChanged;
     skillSetListBox.DataSource            = skills.SkillSets;
     skillSetListBox.SelectedIndexChanged += skillSetListBox_SelectedIndexChanged;
     skillSetListBox.SelectedIndex         = 0;
     //skillSetEditor.SkillSet = skillSetListBox.SelectedItem as SkillSet;
     skillSetEditor.SetSkillSet(skillSetListBox.SelectedItem as SkillSet, context);
     skillSetListBox.SetChangedColors();
 }