예제 #1
0
파일: Form1.cs 프로젝트: MikeX777/IM-Client
        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...";
     }
 }