Пример #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");
            }
        }
Пример #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");
            }
        }
Пример #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");
            }
        }
Пример #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");
            }
        }