/// <summary>
        /// Gets the court types.
        /// </summary>
        private void GetCourtTypes()
        {
            TimeServiceClient timeService = null;
            try
            {
                timeService = new TimeServiceClient();
                CollectionRequest collectionRequest = new CollectionRequest();
                CourtTypeSearchCriteria searchCriteria = new CourtTypeSearchCriteria();
                searchCriteria.IncludeArchived = false;
                CourtTypeReturnValue returnValue = timeService.CourtTypeSearch(_logonSettings.LogonId, collectionRequest
                                                                                    , searchCriteria);

                if (returnValue.Success)
                {
                    _ddlCourtType.DataSource = returnValue.CourtTypes.Rows;
                    _ddlCourtType.DataTextField = "Description";
                    _ddlCourtType.DataValueField = "Id";
                    _ddlCourtType.DataBind();
                }
                else
                {
                    throw new Exception(returnValue.Message);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                if (timeService != null)
                {
                    if (timeService.State != System.ServiceModel.CommunicationState.Faulted)
                        timeService.Close();
                }
            }
        }