コード例 #1
0
        private static void LoadResources()
        {
            for (int i = 1; i <= 10; i++)
            {
                if (SplashForm != null)
                {
                    SplashForm.Invoke(new MethodInvoker(delegate
                                                        { SplashForm.labelMark.Text = "AutoTest"; }));
                }
                Thread.Sleep(100);
            }

            Add_ons Add_ons = new Add_ons();//讀取相機的PidVid

            Add_ons.ReadVidPid();
            //Add_ons.CreateExcelFile();
        }
コード例 #2
0
ファイル: FormMonkeyTest.cs プロジェクト: shchang508/AutoTest
        private void buttonLoadApps_Click(object sender, EventArgs e)
        {
            ini12.INIWrite(MonkeyTestPath, "Monket Test", "Package", "");

            Add_ons MonkeyTest = new Add_ons();

            MonkeyTest.MonkeyTest();

            string ReadLine;

            string[] array;
            string   Path = Application.StartupPath + "\\app.txt";

            //string Path = "D:\\app.txt";

            this.comboxQcProName.Items.Clear();
            StreamReader reader = new StreamReader(Path, System.Text.Encoding.GetEncoding("GB2312"));

            while (reader.Peek() >= 0)
            {
                try
                {
                    ReadLine = reader.ReadLine();
                    if (ReadLine != "")
                    {
                        ReadLine = ReadLine.Replace("\"", "").Substring(8);
                        array    = ReadLine.Split(',');
                        if (array.Length == 0)
                        {
                            MessageBox.Show("您选择的导入数据类型有误,请重试!");
                            return;
                        }
                        this.comboxQcProName.Items.Add(array[0]);
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString());
                }
                comboxQcProName.Text = "Select App";
            }

            SavedLabel.Text = "";
        }
コード例 #3
0
        private static void LoadResources()
        {
            for (int i = 1; i <= 10; i++)
            {
                if (SplashForm != null)
                {
                    SplashForm.Invoke(new MethodInvoker(delegate
                                                        { SplashForm.labelMark.Text = "AutoTest"; }));
                }
                Thread.Sleep(100);
            }

            Add_ons Add_ons = new Add_ons();

            Add_ons.CreateConfig(); //如果根目錄沒有Config.ini則創建//
            Add_ons.USB_Read();     //讀取USB設備的Pid, Vid//

            //Add_ons.CreateExcelFile();
        }
コード例 #4
0
ファイル: FormMonkeyTest.cs プロジェクト: shchang508/AutoTest
        private void buttonRunAll_Click(object sender, EventArgs e)
        {
            Add_ons MonkeyTest_All = new Add_ons();

            MonkeyTest_All.MonkeyTest();
        }