private void text2_LostFocus(object sender, RoutedEventArgs e) { if (list.SelectedIndex == -1) { return; } Commands.SetCondition command = new Commands.SetCondition(mRules.Rules.ElementAt(list.SelectedIndex), text2.Text); mCommandManager.Execute(command); }
private void text2_LostFocus(object sender, RoutedEventArgs e) { if (list.SelectedIndex == -1) return; Commands.SetCondition command = new Commands.SetCondition(mRules.Rules.ElementAt(list.SelectedIndex), text2.Text); mCommandManager.Execute(command); }