Ejemplo n.º 1
0
 public void ClearLists()
 {
     Application.Current.Dispatcher.Invoke((Action) delegate
     {
         DragNames.Clear();
         ClickNames.Clear();
         ScreenNames.Clear();
         MacroNames.Clear();
     });
 }
Ejemplo n.º 2
0
 public void AddClick(string name)
 {
     Application.Current.Dispatcher.Invoke((Action) delegate
     {
         ClickNames.Add(name);
         if (name == selectedClickName)
         {
             int idx = 0;
             foreach (var item in lbxClick.Items)
             {
                 if (item.ToString() == name)
                 {
                     break;
                 }
                 idx++;
             }
             lbxClick.SelectedIndex = idx;
         }
     });
 }