public void FillMainFormLink(SocketClient afrmMain) { if (afrmMain != null) { frmSocketClient = afrmMain; // получаем локальное IP; localIP = System.Net.Dns.GetHostByName(frmSocketClient.clientHostName).AddressList[0].ToString(); } }
public void SetLinkToMainForm(SocketClient aMainForm) { mainFormLink = aMainForm; }