Esempio n. 1
0
 private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (list.SelectedIndex == -1)
     {
         return;
     }
     Commands.SetAction command = new Commands.SetAction(mRules.Rules.ElementAt(list.SelectedIndex), comboBox1.SelectedIndex.ToString());
     mCommandManager.Execute(command);
 }
Esempio n. 2
0
 private void comboBox1_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (list.SelectedIndex == -1)
         return;
     Commands.SetAction command = new Commands.SetAction(mRules.Rules.ElementAt(list.SelectedIndex), comboBox1.SelectedIndex.ToString());
     mCommandManager.Execute(command);
 }