Example #1
0
        //设置群成员名片
        private void button17_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(this.textBox23.Text))
            {
                MessageBox.Show("目标群号不能为空");
                return;
            }

            if (string.IsNullOrWhiteSpace(this.textBox22.Text))
            {
                MessageBox.Show("目标QQ不能为空");
                return;
            }

            if (string.IsNullOrWhiteSpace(this.textBox24.Text))
            {
                MessageBox.Show("新名片不能为空");
                return;
            }
            int content = coolQApiForTest.SetGroupCard(Convert.ToInt64(this.textBox23.Text), Convert.ToInt64(this.textBox22.Text), this.textBox24.Text);

            textBox4.Text = "" + content;
            MessageBox.Show("执行完成");
        }