示例#1
0
        public static bool Exec(AutomationWindow automationWindow)
        {
            automationWindow.CreateView("Item View", string.Empty);
            System.Threading.Thread.Sleep(10000);
            automationWindow.ClearViewItems("Item View");

            return(true);
        }
示例#2
0
        public static bool Teardown(AutomationWindow window)
        {
            bool result;

            result = window.ClearViewItems("Item View");
            if (result == false)
            {
                Console.WriteLine("Error ClearViewItems: " + window.GetLastErrorString());
            }

            return(result);
        }