private void addEC_Click(object sender, RoutedEventArgs e) { var v = new Configuration.EffectiveCondition(); ecList.Items.Add(v); ecList.SelectedItem = v; editEC_Click(sender, e); }
public EffectiveConditionEditor(Configuration.EffectiveCondition e) { InitializeComponent(); E = e; V.Text = E.V; foreach (object o in K.Items) { if ((o as string).Split('|')[1] == E.K) { K.SelectedItem = o; } } }