Ejemplo n.º 1
0
        /// <summary>
        /// Sets up the Modal Error Popup Dialog
        /// </summary>
        private void AddErrorPopup()
        {
            if (this.ForumControl.FindControl("YafForumPageErrorPopup1") == null)
            {
                // add error control...
                this.errorPopup = new PopupDialogNotification
                {
                    ID = "YafForumPageErrorPopup1"
                };

                this.ForumControl.Controls.Add(this.errorPopup);
            }
            else
            {
                // reference existing control...
                this.errorPopup = (PopupDialogNotification)this.ForumControl.FindControl("YafForumPageErrorPopup1");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sets up the Modal Error Popup Dialog
        /// </summary>
        private void AddErrorPopup()
        {
            if (this.ForumControl.FindControl("YafForumPageErrorPopup1") == null)
            {
                // add error control...
                this._errorPopup = new PopupDialogNotification
                {
                    ID    = "YafForumPageErrorPopup1",
                    Title = this.GetText("COMMON", "MODAL_NOTIFICATION_HEADER")
                };

                this.ForumControl.Controls.Add(this._errorPopup);
            }
            else
            {
                // reference existing control...
                this._errorPopup       = (PopupDialogNotification)this.ForumControl.FindControl("YafForumPageErrorPopup1");
                this._errorPopup.Title = this.GetText("COMMON", "MODAL_NOTIFICATION_HEADER");
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Sets up the Modal Error Popup Dialog
        /// </summary>
        private void AddErrorPopup()
        {
            if (this.ForumControl.FindControl("YafForumPageErrorPopup1") == null)
            {
                // add error control...
                this._errorPopup = new PopupDialogNotification
                    {
                        ID = "YafForumPageErrorPopup1"
                    };

                this.ForumControl.Controls.Add(this._errorPopup);
            }
            else
            {
                // reference existing control...
                this._errorPopup = (PopupDialogNotification)this.ForumControl.FindControl("YafForumPageErrorPopup1");
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Sets up the Modal Error Popup Dialog
        /// </summary>
        private void AddErrorPopup()
        {
            if (this.ForumControl.FindControl("YafForumPageErrorPopup1") == null)
            {
                // add error control...
                this._errorPopup = new PopupDialogNotification
                    {
                        ID = "YafForumPageErrorPopup1", 
                        Title = this.GetText("COMMON", "MODAL_NOTIFICATION_HEADER")
                    };

                this.ForumControl.Controls.Add(this._errorPopup);
            }
            else
            {
                // reference existing control...
                this._errorPopup = (PopupDialogNotification)this.ForumControl.FindControl("YafForumPageErrorPopup1");
                this._errorPopup.Title = this.GetText("COMMON", "MODAL_NOTIFICATION_HEADER");
            }
        }