private void loginButton_Click(object sender, EventArgs e) { //Form userFor = new Form(); //MainForm userForm = new MainForm(); //userFor.Show(); //userForm.ShowDialog(); classListForm displayForm = new classListForm(); displayForm.Show(); this.Hide(); }
private void logOutButton_Click(object sender, EventArgs e) { const string EXIT_MESSAGE = "Exit"; classListForm displayForm = new classListForm(); Client.sendMessageUI(Client.serverTCP, EXIT_MESSAGE); chatroomListbox.Items.Clear(); chatroomListbox.Items.Add("You have disconnected from the server"); // displayForm.Show(); // this.Hide(); }
private void registerButton_Click(object sender, EventArgs e) { classListForm displayForm = new classListForm(); displayForm.Show(); this.Hide(); }