public void UpdateView(AllStatusAttributes attributes)
 {
     listBox.SelectedIndexChanged         -= listBox_SelectedIndexChanged;
     listBox.DataSource                    = attributes.StatusAttributes;
     listBox.SelectedIndexChanged         += listBox_SelectedIndexChanged;
     listBox.SelectedIndex                 = 0;
     statusAttributeEditor.StatusAttribute = listBox.SelectedItem as StatusAttribute;
 }
Beispiel #2
0
 public void UpdateView(AllStatusAttributes attributes, PatcherLib.Datatypes.Context context)
 {
     ourContext = context;
     listBox.SelectedIndexChanged -= listBox_SelectedIndexChanged;
     listBox.DataSource            = attributes.StatusAttributes;
     listBox.SelectedIndexChanged += listBox_SelectedIndexChanged;
     listBox.SelectedIndex         = 0;
     //statusAttributeEditor.StatusAttribute = listBox.SelectedItem as StatusAttribute;
     statusAttributeEditor.SetStatusAttribute(listBox.SelectedItem as StatusAttribute, context);
     listBox.SetChangedColors();
 }