private void GetData(List<MESParameterInfo> lstParameters) { wsMDL.IwsMDLClient client = new wsMDL.IwsMDLClient(); try { baseForm.SetCursor(); DataSet ds = client.GetExchangeRecords(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>()); this.grdQuery.SetDataBinding(ds.Tables[0], ""); this.ucStatusBar1.ShowText1(UtilCulture.GetString("Msg.R00006") + ": " + ds.Tables[0].Rows.Count.ToString()); } catch (Exception ex) { MESMsgBox.ShowError(ExceptionParser.Parse(ex)); } finally { baseForm.ResetCursor(); baseForm.CloseWCF(client); } }