public int CompanyCount() { CompanySP spCompany = new CompanySP(); int inCount = 0; try { inCount = spCompany.CompanyCount(); } catch (Exception ex) { MessageBox.Show("CB:9" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(inCount); }