private void buttonOrderFile_Click(object sender, EventArgs e) { try { StringBuilder resultFile = new StringBuilder(1024); Boolean result = RemoteCall.GetOrderFile(_reqSession, 1000, 1012, resultFile); if (result) { listBoxSqlLog.Items.Add("OrderFile: " + resultFile.ToString()); } } catch (Exception er) { listBoxSqlLog.Items.Add(er.Message); //失败时,抛出错误信息 } }