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_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); }
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); }
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); }
protected void Init(TextBox textBox) { textBoxService = new TextBoxService(this, textBox); this.StandardInit(); this.FormClosing += new FormClosingEventHandler((object sender, FormClosingEventArgs e) => { AppServiceHelper.OpenForm("MainForm"); }); }
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"; }
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); }
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); } }
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); }
private void Form_Inherit_FormClosing(object sender, FormClosingEventArgs e) { AppServiceHelper.OpenForm("MainForm"); }
protected void ExecuteService(BaseAppService service, Button button) { service.AppButtonService = new ButtonService(this, button); service.AppTextBoxService = textBoxService; AppServiceHelper.RunThread(service); }
private void Form_Concurrency_FormClosing(object sender, FormClosingEventArgs e) { AppServiceHelper.OpenForm("MainForm"); }
private void ExecuteService(BaseAppService service, Button button) { service.AppButtonService = new ButtonService(this, button); service.AppTextBoxService = textBoxService; AppServiceHelper.Run(service); }