public roomInterface(myTcpClient newClient, int timePerQuestion, int numberOfQuestions) { _timePerQuestion = timePerQuestion; InitializeComponent(); _client = newClient; //TODO? send a join request listenToReplies(); }
public MainMenu(myTcpClient newClient) { InitializeComponent(); _client = newClient; _roomNametoId = new Dictionary <string, string>(); Thread listenThread = new Thread(new ThreadStart(this.listenToReplies)); listenThread.Start(); }
public SignUp(string username, string password, myTcpClient newClient) { InitializeComponent(); txtUsername.Text = username; passBox.Password = password; _username = username; _password = password; _client = newClient; }
public LoginWindow() { InitializeComponent(); bool isSecured = false; _client = new myTcpClient(isSecured); if (!_client.connect("127.0.0.1", 8820)) { Close(); } }
public Game(myTcpClient newClient, int timePerQuestion, int numberOfQuestions) { InitializeComponent(); _exists = true; _client = newClient; _timePerQuestion = timePerQuestion; _totalNumberOfQuestions = numberOfQuestions; //listenToReplies(); setUpTimer(); }
public void NewConnection(string ip, int port) { try { clientId = 0xffff; con = new myTcpClient(ip, port); CAUTH(); } catch (System.Net.Sockets.SocketException e) { System.Windows.Forms.MessageBox.Show(e.Message); } catch (Exception) { throw; } }
public bestScores(myTcpClient client) { InitializeComponent(); _client = client; getBestScores(); }
public createRoom(myTcpClient client) { InitializeComponent(); _client = client; }
public status(myTcpClient client) { InitializeComponent(); _client = client; getStatus(); }