private void Mainform_Load(object sender, EventArgs e) { // CheckForIllegalCrossThreadCalls = false; mServerAddress = new WebClient().DownloadString(SERVER_ADDRESS); mConnection = new TTSConnectionClient(this, "192.168.0.248"); //mServerAddress mConnectForm = new ConnectForm(mConnection, this); }
public ConnectForm(TTSConnectionClient pConnection, Mainform pMainform) { InitializeComponent(); mConnection = pConnection; mMainform = pMainform; IPAddress lIPAddress = mConnection.GetINetIPAddress(); if (lIPAddress != null) { IPTextBox.Text = lIPAddress.ToString(); } }