/// <summary>
        /// Raises the <see cref="E:System.Web.UI.Control.Init"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> object that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            if (!PermissionController.CanManageApplications(this))
            {
                this.DenyAccess();
                return;
            }

            base.OnInit(e);

            this.JobsGrid.NeedDataSource      += this.JobsGrid_NeedDataSource;
            this.JobsGrid.ItemCreated         += this.JobsGrid_ItemCreated;
            this.JobsGrid.ItemCommand         += this.JobsGrid_ItemCommand;
            this.JobsGrid.ItemDataBound       += this.JobsGrid_ItemDataBound;
            this.JobsGrid.DetailTableDataBind += this.JobsGrid_DetailTableDataBind;

            this.PopulateSearchDropDown();

            try
            {
                this.SetLinks();
                this.LocalizeGrid();
            }
            catch (Exception exc)
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }
Exemple #2
0
        /// <summary>Raises the <see cref="Control.Init"/> event.</summary>
        /// <param name="e">An <see cref="EventArgs"/> object that contains the event data.</param>
        protected override void OnInit(EventArgs e)
        {
            if (!PermissionController.CanManageApplications(this))
            {
                this.DenyAccess();
                return;
            }

            this.Load                          += this.Page_Load;
            this.AddButton.Click               += this.AddButton_Click;
            this.BackButton.Click              += this.BackButton_Click;
            this.CancelNewStatusButton.Click   += this.CancelNewStatusButton_Click;
            this.SaveNewStatusButton.Click     += this.SaveNewStatusButton_Click;
            this.StatusesGrid.RowCancelingEdit += this.StatusesGrid_RowCancelingEdit;
            this.StatusesGrid.RowCommand       += this.StatusesGrid_RowCommand;
            this.StatusesGrid.RowDataBound     += this.StatusesGrid_RowDataBound;
            this.StatusesGrid.RowDeleting      += this.StatusesGrid_RowDeleting;
            this.StatusesGrid.RowEditing       += this.StatusesGrid_RowEditing;

            base.OnInit(e);
        }