Exemple #1
0
        private void button_SonToFather_Click(object sender, EventArgs e)
        {
            var service = new DevUtility.Test.Service.Winform.Base.InheritService();

            service.AppTextBoxService = textBoxService;
            service.AppButtonService  = new ButtonService(this, button_SonToFather);
            AppServiceHelper.RunThread(service);
        }
Exemple #2
0
        private void button_HttpHelper_Using_Click(object sender, EventArgs e)
        {
            var service = new DevUtility.Test.Service.Winform.Net.Http.TestHttpHelperUsingService(textBox_inputValue.Text);

            service.AppTextBoxService = textBoxService;
            service.AppButtonService  = new ButtonService(this, button_HttpHelper_Using);
            AppServiceHelper.RunThread(service);
        }
Exemple #3
0
        private void button_TestDataTable_Click(object sender, EventArgs e)
        {
            var service = new TestDataTableService();

            service.AppTextBoxService = textBoxService;
            service.AppButtonService  = new ButtonService(this, button_TestDataTable);
            AppServiceHelper.RunThread(service);
        }
        private void button_MD5Encrypt_Click(object sender, EventArgs e)
        {
            var service = new DevUtility.Test.Service.Winform.Data.Cryptography.MD5HelperTest.TestMD5Service(textBox_inputValue.Text);

            service.AppTextBoxService = textBoxService;
            service.AppButtonService  = new ButtonService(this, button_MD5Encrypt);
            AppServiceHelper.RunThread(service);
        }
        private void button_InsertDuplicateData_Click(object sender, EventArgs e)
        {
            List <InsertDuplicateDataService> services = new List <InsertDuplicateDataService>();

            for (int i = 0; i < 4; i++)
            {
                var service = new InsertDuplicateDataService(textBox_inputValue.Text);
                service.AppTextBoxService = textBoxService;
                service.AppButtonService  = new ButtonService(this, button_InsertData);
                services.Add(service);
            }

            foreach (var service in services)
            {
                AppServiceHelper.RunThread(service);
            }
        }
Exemple #6
0
 protected void ExecuteService(BaseAppService service, Button button)
 {
     service.AppButtonService  = new ButtonService(this, button);
     service.AppTextBoxService = textBoxService;
     AppServiceHelper.RunThread(service);
 }