You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tcpipSocket/Chat/Client/LoginForm.cs

25 lines
519 B

namespace Client
{
public partial class LoginForm : Form
{
public LoginForm()
{
InitializeComponent();
}
private void btnLogin_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(tbxId.Text) || string.IsNullOrEmpty(tbxNickname.Text))
{
MessageBox.Show("Please input ID and Nickname.");
return;
}
Singleton.Instance.Id = tbxId.Text;
Singleton.Instance.Nickname = tbxNickname.Text;
RoomListForm roomListForm = new RoomListForm();
roomListForm.ShowDialog();
}
}
}