示例#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 Setup(AutomationWindow window)
        {
            bool result;
            uint autoResult;

            result = window.LoadConfig(Program.GetWorkingDirectory() + "simple.dmc");
            if (result == true)
            {
                autoResult = window.CloseView("Item View", null);
                Console.WriteLine("Close Itemview, result = " + autoResult);

                autoResult = window.CreateView("Item View", "");
                Console.WriteLine("Create Itemview, result = " + autoResult);
            }
            else
            {
                Console.WriteLine("Load Config Error:" + window.GetLastErrorString());
            }

            return(result);
        }