// static string apiKey = "b92b926bdef4432bb1c0ed79844b707e"; // BingTranslateService bingTranslate = new BingTranslateService(apiKey); //Speech speech = new Speech(); public Form1(string _author, string _language, string _ipAdress) { if (!(_author == string.Empty)) { author = _author; } if (!(_language == string.Empty)) { language = _language; } if (!(_ipAdress == string.Empty)) { clientCode = new ClientCode(_ipAdress, language); } else { clientCode = new ClientCode(ipAdress, language); } Thread t = new Thread(new ThreadStart(MethodName)); t.Start(); InitializeComponent(); }
private void button2_Click(object sender, EventArgs e) { ClientCode clientCode = new ClientCode(); clientCode.Test("192.168.56.1", richTextBox1.Text); }