Example #1
0
        private void btn_login_Click(object sender, EventArgs e)
        {
            if (MyIMClient.Connect())
            {
                MyIMClient.Login(tb_username.Text.Trim());

                new IMForm().ShowDialog();
            }
            else
            {
                MessageBox.Show("连接失败");
            }
        }