private void button2_Press(object sender, EventArgs e) { try { jPushClient.Push(textBox2.Text, textBox1.Text); } catch (cn.jpush.api.common.APIRequestException apiex) { MessageBox.Show(string.Format("{0}/{1}", apiex.Message, apiex.ErrorMessage)); } }
private void button2_Press(object sender, EventArgs e) { client.Push(textBox2.Text, textBox1.Text); }