/// <summary>
 /// Returns true if the given actions can be collapsed.
 /// </summary>
 /// <param name="action1">The earlier event to test.</param>
 /// <param name="action2">The latter event to test.</param>
 /// <returns>True if these events can be collapsed; else false.</returns>
 public abstract bool CanCollapse(EventAction action1, EventAction action2);
Exemplo n.º 2
0
 public void FireEvent(Type testerType, object control, EventAction action)
 {
     if (!InProcess(testerType, control, action.MethodName))
     {
         OnEvent(testerType, control, action);
     }
     CheckForNewForms();
 }
Exemplo n.º 3
0
 private void FireSingleSelection(ListBox list)
 {
     EventAction action = new EventAction("Select", list.SelectedIndex);
     action.Comment = list.Text;
     Listener.FireEvent(TesterType, list, action);
 }
Exemplo n.º 4
0
        private void FireMultipleSelection(ListBox list)
        {
            //HACK: SelectedItem does not return last item selected or indicate on/off so
            //unless we have a smarter plan just issue clear and setselected
            CompositeAction actions = new CompositeAction("MultipleSelections");
            actions.Add("ClearSelected");

            foreach (int index in list.SelectedIndices)
            {
                EventAction action = new EventAction("SetSelected", index, true);
                action.Comment = list.Items[index].ToString();
                actions.Add(action);
            }

            Listener.FireEvent(TesterType, list, actions);
        }
Exemplo n.º 5
0
 public void SelectedIndexChanged(object sender, EventArgs e)
 {
     EventAction action = new EventAction("Select", ((ComboBox) sender).SelectedIndex);
     action.Comment = ((ComboBox) sender).Text;
     Listener.FireEvent(TesterType, sender, action);
 }
 /// <summary>
 /// Returns true if the given actions can be collapsed.
 /// </summary>
 /// <param name="action1">The earlier event to test.</param>
 /// <param name="action2">The latter event to test.</param>
 /// <returns>True if these events can be collapsed; else false.</returns>
 public abstract bool CanCollapse(EventAction action1, EventAction action2);