示例#1
0
 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();
 }
示例#2
0
 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();
 }
示例#3
0
 private void registerButton_Click(object sender, EventArgs e)
 {
     classListForm displayForm = new classListForm();
     displayForm.Show();
     this.Hide();
 }