Beispiel #1
0
 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);
 }
Beispiel #2
0
        public ConnectForm(TTSConnectionClient pConnection, Mainform pMainform)
        {
            InitializeComponent();
            mConnection = pConnection;
            mMainform   = pMainform;
            IPAddress lIPAddress = mConnection.GetINetIPAddress();

            if (lIPAddress != null)
            {
                IPTextBox.Text = lIPAddress.ToString();
            }
        }