private tmdlshift GetSingleShift(string _shift) { wsMDL.IwsMDLClient client = new wsMDL.IwsMDLClient(); tmdlshift result = null; try { baseForm.SetCursor(); List<MESParameterInfo> lstParameters = new List<MESParameterInfo>(); lstParameters.Add(new MESParameterInfo() { ParamName = "shift", ParamValue = _shift, ParamType = "string" }); result = client.GetSingleShift(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>()); } catch (Exception ex) { throw ex; } finally { baseForm.ResetCursor(); baseForm.CloseWCF(client); } return result; }