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(); }
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(); }
public void WhenEnterTheNameOfPerson(string name) { var friendsForm = new FriendsForm(); friendsForm.EnterNameForSearch(name); }
public void WhenSelectRegion(string region) { var friendsForm = new FriendsForm(); friendsForm.SelectRegion(region); }
public void WhenClickToExtendedConfiguration() { var friendsForm = new FriendsForm(); friendsForm.ClickToExtendedConfiguration(); }