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