Пример #1
0
        public static void StartProcessWithFormAndControl(
            UIAutomationTestForms.Forms formCode,
            TimeoutsAndDelays formDelayEn,
            System.Windows.Automation.ControlType controlType,
            string controlName,
            string controlAutomationId,
            TimeoutsAndDelays controlDelayEn)
        {
            var controlToForm = 
                new ControlToForm(
                    controlType,
                    controlName,
                    controlAutomationId, 
                    controlDelayEn);
            
            // 20150322
            /*
            var arr = new System.Collections.ArrayList();
            arr.Add(controlToForm);
            
            StartProcessWithFormAndControl(
                formCode,
                formDelayEn,
                ((ControlToForm[])arr.ToArray(typeof(ControlToForm))));
            */
            var arr = new ArrayList {controlToForm};

            StartProcessWithFormAndControl(
                formCode,
                formDelayEn,
                ((ControlToForm[])arr.ToArray(typeof(ControlToForm))));
        }
Пример #2
0
        public static void StartProcessWithFormAndControl(
            UIAutomationTestForms.Forms formCode,
            TimeoutsAndDelays formDelayEn,
            System.Windows.Automation.ControlType controlType,
            string controlName,
            string controlAutomationId,
            TimeoutsAndDelays controlDelayEn)
        {
            var controlToForm =
                new ControlToForm(
                    controlType,
                    controlName,
                    controlAutomationId,
                    controlDelayEn);

            // 20150322

            /*
             * var arr = new System.Collections.ArrayList();
             * arr.Add(controlToForm);
             *
             * StartProcessWithFormAndControl(
             *  formCode,
             *  formDelayEn,
             *  ((ControlToForm[])arr.ToArray(typeof(ControlToForm))));
             */
            var arr = new ArrayList {
                controlToForm
            };

            StartProcessWithFormAndControl(
                formCode,
                formDelayEn,
                ((ControlToForm[])arr.ToArray(typeof(ControlToForm))));
        }