Exemple #1
0
        public ClientConnector(int port, Client textB)
        {
            this.clientForm = textB;
            this.port       = port;
            // createLogger();

            ipAddress = Dns.GetHostAddresses("localhost");

            ipEnd = new IPEndPoint(ipAddress[0], port);

            Socket clientSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);

            friendsGrid = new FriendsForm();
        }
Exemple #2
0
 private void Friend_button_Click(object sender, EventArgs e)
 {
     if (Administration.User != null)
     {
         FriendsForm form = new FriendsForm(Administration);
         this.Visible = false;
         var closing = form.ShowDialog();
         if (closing == DialogResult.OK)
         {
             Administration = form.Administration;
             UserRefresh();
             this.Visible = true;
         }
     }
 }
        private void findFriendButton_Click(object sender, EventArgs e)
        {
            var friends = new FriendsForm();

            friends.Show();
        }
Exemple #4
0
        public void WhenEnterTheNameOfPerson(string name)
        {
            var friendsForm = new FriendsForm();

            friendsForm.EnterNameForSearch(name);
        }
Exemple #5
0
        public void WhenSelectRegion(string region)
        {
            var friendsForm = new FriendsForm();

            friendsForm.SelectRegion(region);
        }
Exemple #6
0
        public void WhenClickToExtendedConfiguration()
        {
            var friendsForm = new FriendsForm();

            friendsForm.ClickToExtendedConfiguration();
        }