Esempio n. 1
0
        private void tbAcceptInvitation_Click(object sender, EventArgs e)
        {
            string nodeId = string.Empty;

            if (InputDlg.QueryText(this, CommunicatorCore.APP_NAME, "Friend's node id received by mail", ref nodeId))
            {
                fCore.AcceptInvitation(nodeId);
            }
        }
Esempio n. 2
0
        private void miAddPeer_Click(object sender, EventArgs e)
        {
            string endpoint = string.Empty;

            if (InputDlg.QueryText(this, CommunicatorCore.APP_NAME, "Peer endpoint", ref endpoint))
            {
                if (Utilities.IsValidIpAddress(endpoint))
                {
                    var peerEndPoint = Utilities.ParseIPEndPoint(endpoint);
                    fCore.UpdatePeer(peerEndPoint);
                    ((IChatForm)this).OnPeersListChanged();
                }
            }
        }