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