Beispiel #1
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);
        }
        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);
        }