コード例 #1
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);
        }
コード例 #2
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);
        }
コード例 #3
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);
        }
コード例 #4
0
ファイル: Form_Security.cs プロジェクト: eagle6688/DevUtility
        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);
        }
コード例 #5
0
ファイル: BaseForm.cs プロジェクト: eagle6688/DevUtility
 protected void Init(TextBox textBox)
 {
     textBoxService = new TextBoxService(this, textBox);
     this.StandardInit();
     this.FormClosing += new FormClosingEventHandler((object sender, FormClosingEventArgs e) =>
     {
         AppServiceHelper.OpenForm("MainForm");
     });
 }
コード例 #6
0
        private void Init()
        {
            textBoxService = new TextBoxService(this, textBox_Message);
            this.StandardInit();
            this.FormClosing += new FormClosingEventHandler((object sender, FormClosingEventArgs e) =>
            {
                AppServiceHelper.OpenForm("MainForm");
            });

            textBox_Host.Text = "10.122.11.176";
        }
コード例 #7
0
ファイル: WwwTester5.cs プロジェクト: jjvanzon/JJ.SaveText
    private void SendMessage()
    {
        string url                   = "http://83.82.26.17:6371/SetTextAppService.svc";
        string operationName         = "Show";
        string interfaceName         = "ISetTextAppService";
        string soapAction            = String.Format("http://tempuri.org/{0}/{1}", interfaceName, operationName);
        int    timeoutInMilliseconds = 3000;

        string stringToSend = GetStringToSend();

        _resultString = AppServiceHelper.SendSoapMessage(url, soapAction, stringToSend, timeoutInMilliseconds);
    }
コード例 #8
0
        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);
            }
        }
コード例 #9
0
    void OnGUI()
    {
        int y = _spacing;

        GUI.Label(new Rect(_spacing, y, _width, _lineHeight), "SOAP Test", _labelStyle);

        y += _lineHeight;
        y += _spacing;

        if (GUI.Button(new Rect(_spacing, y, _width, _lineHeight), "Send Request"))
        {
            //string url = "http://localhost:6371/SetTextAppService.svc";
            string url                 = "http://83.82.26.17:6371/SetTextAppService.svc";
            string operationName       = "Show";
            string interfaceName       = "ISetTextAppService";
            string soapAction          = String.Format("http://tempuri.org/{0}/{1}", interfaceName, operationName);
            int    timeoutInMillsecods = 10000;

            string stringToSend = GetStringToSend();
            try
            {
                _resultString = AppServiceHelper.SendSoapMessage(url, soapAction, stringToSend, timeoutInMillsecods);
                Debug.Log("Status = Ok");
                Debug.Log(_resultString);
            }
            catch (Exception ex)
            {
                _resultString = ex.Message;
                Debug.Log(_resultString);
            }
        }
        y += _lineHeight;
        y += _spacing;

        GUI.Label(new Rect(_spacing, y, 400, 600), _resultString, _labelStyle);
    }
コード例 #10
0
 private void Form_Inherit_FormClosing(object sender, FormClosingEventArgs e)
 {
     AppServiceHelper.OpenForm("MainForm");
 }
コード例 #11
0
ファイル: BaseForm.cs プロジェクト: eagle6688/DevUtility
 protected void ExecuteService(BaseAppService service, Button button)
 {
     service.AppButtonService  = new ButtonService(this, button);
     service.AppTextBoxService = textBoxService;
     AppServiceHelper.RunThread(service);
 }
コード例 #12
0
 private void Form_Concurrency_FormClosing(object sender, FormClosingEventArgs e)
 {
     AppServiceHelper.OpenForm("MainForm");
 }
コード例 #13
0
 private void ExecuteService(BaseAppService service, Button button)
 {
     service.AppButtonService  = new ButtonService(this, button);
     service.AppTextBoxService = textBoxService;
     AppServiceHelper.Run(service);
 }