/// <summary>
 /// Initializes a new instance of the <see cref="ApplicationListing"/> class.
 /// </summary>
 public ApplicationListing()
 {
     this.userStatuses        = UserStatus.LoadStatuses(this.PortalId);
     this.applicationStatuses = ApplicationStatus.GetStatuses(this.PortalId);
     this.leadsList           = (new ListController()).GetListEntryInfoCollection(Employment.Utility.LeadListName, Null.NullString, this.PortalId).Cast <ListEntryInfo>().ToDictionary(entry => entry.EntryID);
     this.locations           = Location.LoadLocations(null, this.PortalId);
 }
        /// <summary>Binds the <see cref="StatusesGridView"/> to the list of user statuses.</summary>
        private void BindData()
        {
            var statuses = UserStatus.LoadStatuses(this.PortalId).ToArray();

            this.StatusesGridView.DataSource = statuses;
            this.StatusesGridView.DataBind();

            this.NewPanel.CssClass = statuses.Length % 2 == 0
                                         ? this.StatusesGridView.RowStyle.CssClass
                                         : this.StatusesGridView.AlternatingRowStyle.CssClass;

            this.rowNewHeader.Visible = !statuses.Any();
        }