private void buttonNonQuery_Click(object sender, EventArgs e) { try { if (RemoteCall.RESTNonQuery(_reqSession, this.textBoxSQL.Text)) { //SQL 执行成功 listBoxSqlLog.Items.Add("Non Query Success"); } } catch (Exception err) { listBoxSqlLog.Items.Add(err.Message); //失败时,抛出错误信息 } }