示例#1
0
 private void Register_btn_Click(object sender, EventArgs e)
 {
     if (Pass_txt.Text.Equals(Confirm_txt.Text))
     {
         string user = User_txt.Text;
         string pass = Pass_txt.Text;
         socket.Register(user, pass);
         socket.CloseForm(this);
         socket.DisplayForm(new FrmLogin());
     }
 }
示例#2
0
 private void Login_btn_Click(object sender, EventArgs e)
 {
     if (IP.Text != string.Empty)
     {
         string user = User_txt.Text;
         string pass = Pass_txt.Text;
         socket.Login(user, pass);
         socket.CloseForm(this);
         socket.DisplayForm(new FrmMenu());
     }
     else
     {
         XtraMessageBox.Show("server IP is empty");
     }
 }