Ejemplo n.º 1
0
        public void tabbedForm_PageCreated(object sender, PageCreatedEventArgs e)
        {
            xtraUsrCntrlTab newtab = new xtraUsrCntrlTab();

            newtab.Dock = DockStyle.Fill;
            e.Page.ContentContainer.Controls.Add(newtab);
        }
        private void tabFormControl1_PageCreated(object sender, PageCreatedEventArgs e)
        {
            //OpenNewTabBrowser(e.Page.ContentContainer.Controls, new Uri(defaultUrl));
            //e.Page.ContentContainer.Controls.Add(chromWebBrowser);

            CreateNewTabBrowser(new Uri(defaultUrl));
        }
Ejemplo n.º 3
0
 protected void OnPageCreated(PageCreatedEventArgs e)
 {
     if (PageCreated != null)
     {
         PageCreated(this, e);
     }
 }
Ejemplo n.º 4
0
        private void tabFormControl_Main_PageCreated(object sender, PageCreatedEventArgs e)
        {
            if (_isNewPage)
            {
                CreatePopUpForm();
            }

            if (_canAddNewPage)
            {
                e.Page.Text = _pageName;
                e.Page.Tag  = _key;

                var viewer = new DevExpress.DashboardWin.DashboardViewer();
                viewer.Dock              = DockStyle.Fill;
                viewer.DataLoadingError += new DataLoadingErrorEventHandler(DashboardLoadingError);
                viewer.DashboardSource   = @"" + _filePath;

                e.Page.ContentContainer.Controls.Add(viewer);
                _viewer = viewer;
            }
            else
            {
                var tabFormControl = sender as TabFormControl;
                BeginInvoke(new Action(() =>
                {
                    tabFormControl.Pages.Remove(e.Page);
                }
                                       ));
            }
            _canAddNewPage = true;
            RunTimerWorkflowEngine();
        }
Ejemplo n.º 5
0
 private void OnPageCreated(object sender, PageCreatedEventArgs e)
 {
     Pages.Add(e.SinglePage);
     if (PageCreated != null)
     {
         PageCreated(this, e);
     }
 }
        public override void PageCreatedHandler(object sender, PageCreatedEventArgs e)
        {
            if (sender == null) return;

            PageSettings page = sender as PageSettings;
            // do nothing
            log.Debug("DoNothingPageCreatedEventHandler handled PageCreated event for " + page.PageName);
        }
Ejemplo n.º 7
0
 private void OnPageCreated(object sender, PageCreatedEventArgs e)
 {
     this.Pages.Add(e.SinglePage);
     if (this.Pages.Count == 1)
     {
         ShowSelectedPage();
         this.pageNumber = 0;
     }
 }
Ejemplo n.º 8
0
        public override void PageCreatedHandler(object sender, PageCreatedEventArgs e)
        {
            if (sender == null)
            {
                return;
            }

            PageSettings page = sender as PageSettings;

            // do nothing
            log.Debug("DoNothingPageCreatedEventHandler handled PageCreated event for " + page.PageName);
        }
Ejemplo n.º 9
0
 /// <summary>
 /// On page updated
 /// </summary>
 /// <param name="e"></param>
 public static void PageUpdated(PageCreatedEventArgs e) => SystemEvents.InvokeEvent(null, OnPageUpdated, e, nameof(OnPageUpdated));
 public abstract void PageCreatedHandler(
     object sender,
     PageCreatedEventArgs e);
Ejemplo n.º 11
0
        private bool Create()
        {
            int newID = -1;

            if (this.pageGuid == Guid.Empty)
            {
                this.pageGuid = Guid.NewGuid();
            }

            newID = DBPageSettings.Create(
                this.siteID,
                this.parentID,
                this.pageName,
                this.pageTitle,
                this.skin,
                this.pageOrder,
                this.authorizedRoles,
                this.editRoles,
                this.draftEditOnlyRoles,
                this.createChildPageRoles,
                this.createChildDraftRoles,
                this.requireSSL,
                this.allowBrowserCache,
                this.showBreadcrumbs,
                this.showChildPageBreadcrumbs,
                this.pageMetaKeyWords,
                this.pageMetaDescription,
                this.pageMetaEncoding,
                this.pageMetaAdditional,
                this.useUrl,
                this.url,
                this.openInNewWindow,
                this.showChildPageMenu,
                this.hideMainMenu,
                this.includeInMenu,
                this.menuImage,
                this.changeFrequency.ToString(),
                this.siteMapPriority,
                this.pageGuid,
                this.parentGuid,
                this.hideAfterLogin,
                this.siteGuid,
                this.compiledMeta,
                this.compiledMetaUtc,
                this.includeInSiteMap,
                this.isClickable,
                this.showHomeCrumb,
                this.isPending,
                this.canonicalOverride,
                this.includeInSearchMap,
                this.enableComments);

            this.pageID = newID;

            bool result = (newID > -1);


            if (result)
            {
                PageCreatedEventArgs e = new PageCreatedEventArgs();
                OnPageCreated(e);
            }

            return(result);
        }
Ejemplo n.º 12
0
        private bool Create()
        {
            int newID = -1;

            if (this.pageGuid == Guid.Empty) this.pageGuid = Guid.NewGuid();

            newID = DBPageSettings.Create(
                this.siteID,
                this.parentID,
                this.pageName,
                this.pageTitle,
                this.skin,
                this.pageOrder,
                this.authorizedRoles,
                this.editRoles,
                this.draftEditOnlyRoles,
                this.draftApprovalRoles,
                this.createChildPageRoles,
                this.createChildDraftRoles,
                this.requireSSL,
                this.allowBrowserCache,
                this.showBreadcrumbs,
                this.showChildPageBreadcrumbs,
                this.pageMetaKeyWords,
                this.pageMetaDescription,
                this.pageMetaEncoding,
                this.pageMetaAdditional,
                this.useUrl,
                this.url,
                this.openInNewWindow,
                this.showChildPageMenu,
                this.hideMainMenu,
                this.includeInMenu,
                this.menuImage,
                this.changeFrequency.ToString(),
                this.siteMapPriority,
                this.pageGuid,
                this.parentGuid,
                this.hideAfterLogin,
                this.siteGuid,
                this.compiledMeta,
                this.compiledMetaUtc,
                this.includeInSiteMap,
                this.isClickable,
                this.showHomeCrumb,
                this.isPending,
                this.canonicalOverride,
                this.includeInSearchMap,
                this.enableComments,
                this.includeInChildSiteMap,
                this.expandOnSiteMap,
                this.pubTeamId,
                this.bodyCssClass,
                this.menuCssClass,
                this.publishMode,
                this.createdBy,
                this.createdFromIp,
                this.menuDescription,
                this.linkRel,
                this.pageHeading,
                this.showPageHeading,
                this.pubDateUtc);

            this.pageID = newID;

            bool result = (newID > -1);

            if (result)
            {
                PageCreatedEventArgs e = new PageCreatedEventArgs();
                OnPageCreated(e);
            }

            return result;
        }
Ejemplo n.º 13
0
 protected void OnPageCreated(PageCreatedEventArgs e)
 {
     if (PageCreated != null)
     {
         PageCreated(this, e);
     }
 }
Ejemplo n.º 14
0
 private void PageCreated(object sender, PageCreatedEventArgs e)
 {
     // this is a hook so that custom code can be fired when pages are created
     // implement a PageCreatedEventHandlerPovider and put a config file for it in
     // /Setup/ProviderConfig/pagecreatedeventhandlers
     try
     {
         foreach (PageCreatedEventHandlerPovider handler in PageCreatedEventHandlerPoviderManager.Providers)
         {
             handler.PageCreatedHandler(sender, e);
         }
     }
     catch (TypeInitializationException ex)
     {
         log.Error(ex);
     }
 }
 public abstract void PageCreatedHandler(
     object sender,
     PageCreatedEventArgs e);
Ejemplo n.º 16
0
 /// <summary>
 /// On page updated
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public static void OnPageUpdatedHandler(object sender, PageCreatedEventArgs args)
 {
     //Do something
 }
Ejemplo n.º 17
0
		private void OnPageCreated (object sender,PageCreatedEventArgs e)
		{
			Pages.Add(e.SinglePage);
			if (PageCreated != null) {
				PageCreated (this,e);
			}
		}
Ejemplo n.º 18
0
        private bool Create()
        {
            int newID = -1;

            if (this.PageGuid == Guid.Empty)
            {
                this.PageGuid = Guid.NewGuid();
            }

            newID = DBPageSettings.Create(
                this.SiteId,
                this.ParentId,
                this.PageName,
                this.PageTitle,
                this.Skin,
                this.PageOrder,
                this.AuthorizedRoles,
                this.EditRoles,
                this.DraftEditOnlyRoles,
                this.DraftApprovalRoles,
                this.CreateChildPageRoles,
                this.CreateChildDraftRoles,
                this.RequireSsl,
                this.AllowBrowserCache,
                this.ShowBreadcrumbs,
                this.ShowChildPageBreadcrumbs,
                this.PageMetaKeyWords,
                this.PageMetaDescription,
                this.PageMetaEncoding,
                this.PageMetaAdditional,
                this.UseUrl,
                this.Url,
                this.OpenInNewWindow,
                this.ShowChildPageMenu,
                this.HideMainMenu,
                this.IncludeInMenu,
                this.MenuImage,
                this.ChangeFrequency.ToString(),
                this.SiteMapPriority,
                this.PageGuid,
                this.ParentGuid,
                this.HideAfterLogin,
                this.SiteGuid,
                this.CompiledMeta,
                this.CompiledMetaUtc,
                this.IncludeInSiteMap,
                this.IsClickable,
                this.ShowHomeCrumb,
                this.IsPending,
                this.CanonicalOverride,
                this.IncludeInSearchMap,
                this.EnableComments,
                this.IncludeInChildSiteMap,
                this.ExpandOnSiteMap,
                this.PubTeamId,
                this.BodyCssClass,
                this.MenuCssClass,
                this.PublishMode,
                this.CreatedBy,
                this.CreatedFromIp,
                this.MenuDescription,
                this.LinkRel,
                this.PageHeading,
                this.ShowPageHeading,
                this.PubDateUtc);

            this.PageId = newID;

            bool result = (newID > -1);


            if (result)
            {
                PageCreatedEventArgs e = new PageCreatedEventArgs();
                OnPageCreated(e);
            }

            return(result);
        }