コード例 #1
0
        private TestManager() : base()
        {
            System.Diagnostics.Debug.WriteLine(string.Format("CInstallManager Constructor(SingleTone)"));
            _sendkey_test_list = new List <Dictionary <string, object> >();
            _myUtility         = CUtility.Instance;
            _keyList           = KeyList.Instance;


            //Related with Background Worker
            worker = new BackgroundWorker();
            worker.WorkerReportsProgress      = true;
            worker.WorkerSupportsCancellation = true;
            worker.DoWork             += new DoWorkEventHandler(worker_DoWork);
            worker.ProgressChanged    += new ProgressChangedEventHandler(worker_ProgressChanged);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: cocoknight/WDASendKey
        private void Form1_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = false;
            _keyList     = KeyList.Instance;
            _testManager = TestManager.Instance;
            _testManager.connectUI(this);

            _testresult_columninfos = new List <string>();
            //txtBox_Exception.Text = "abc";

            try
            {
                txtNotePad_num.Text = _notepad_repeat_number.ToString();
                txtPrint_num.Text   = _print_repeat_number.ToString();

                this.initTestResultList();
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(string.Format("Full Stacktrace: {0}", ex.ToString()));
            }
        }