private void registerButton_Click(object sender, EventArgs e) { LogRegForm info = new LogRegForm(); if (info.ShowDialog() == System.Windows.Forms.DialogResult.OK) { im.Register(info.UserName, info.Password); status.Text = "Registering..."; } }
private void loginButton_Click(object sender, EventArgs e) { LogRegForm info = new LogRegForm(); if (info.ShowDialog() == System.Windows.Forms.DialogResult.OK) { im.Login(info.UserName, info.Password); status.Text = "Login..."; } }