XenAdmin.Wizards.PatchingWizard.PatchingWizard_PrecheckPage.PageLoaded C# (CSharp) Метод

PageLoaded() публичный Метод

public PageLoaded ( PageLoadedDirection direction ) : void
direction PageLoadedDirection
Результат void
        public override void PageLoaded(PageLoadedDirection direction)
        {
            base.PageLoaded(direction);
            try
            {
                RegisterEventHandlers();
                if (direction == PageLoadedDirection.Back)
                    return;

                if (IsInAutomatedUpdatesMode)
                {
                    labelPrechecksFirstLine.Text = Messages.PATCHINGWIZARD_PRECHECKPAGE_FIRSTLINE_AUTOMATED_UPDATES_MODE;
                }
                else
                {
                    string patchName = null;
                    if (Patch != null)
                        patchName = Patch.Name;
                    if (PoolUpdate != null)
                        patchName = PoolUpdate.Name;

                    labelPrechecksFirstLine.Text = patchName != null
                        ? string.Format(Messages.PATCHINGWIZARD_PRECHECKPAGE_FIRSTLINE, patchName)
                        : Messages.PATCHINGWIZARD_PRECHECKPAGE_FIRSTLINE_NO_PATCH_NAME;
                }

                RefreshRechecks();
            }
            catch (Exception e)
            {
                log.Error(e, e);
                throw;//better throw an exception rather than closing the wizard suddenly and silently
            }
        }