public void DoDelete() { if (this.grdQuery.ActiveRow == null) return; DialogResult result = baseForm.CreateMessageBox(Public_MessageBox.Question, MessageBoxButtons.OKCancel, UtilCulture.GetString("Msg.R00004"), "" + UtilCulture.GetString("Menu.M200210") + ": " + this.grdQuery.ActiveRow.Cells["customername"].Value.ToString() + "," + this.grdQuery.ActiveRow.Cells["itemname"].Value.ToString()); if (result == DialogResult.Cancel) return; wsINP.IwsINPClient client = new wsINP.IwsINPClient(); try { baseForm.SetCursor(); List<MESParameterInfo> lstParameters = new List<MESParameterInfo>() { new MESParameterInfo(){ ParamName="oprisysid", ParamValue=this.grdQuery.ActiveRow.Cells["oprisysid"].Value.ToString(), ParamType="string" } }; client.DoDeleteOtherPricing(baseForm.CurrentContextInfo, lstParameters.ToArray<MESParameterInfo>()); baseForm.CreateMessageBox(Public_MessageBox.Information, MessageBoxButtons.OK, null, UtilCulture.GetString("Msg.R00003")); } catch (Exception ex) { MESMsgBox.ShowError(ExceptionParser.Parse(ex)); } finally { baseForm.ResetCursor(); baseForm.CloseWCF(client); } }