예제 #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");
            }
        }