Ejemplo n.º 1
0
		private void ViewMenu_ItemClick( object sender, YAF.Controls.PopEventArgs e )
		{
			switch ( e.Item.ToLower() )
			{
				case "normal":
					IsThreaded = false;
					BindData();
					break;
				case "threaded":
					IsThreaded = true;
					BindData();
					break;
				default:
					throw new ApplicationException( e.Item );
			}
		}
Ejemplo n.º 2
0
		/// <summary>
		/// Called when the forum control sets it's Page Title
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
    void forumControl_PageTitleSet( object sender, YAF.Classes.Base.ForumPageArgs e )
    {
      if ( PageTitleSet != null ) PageTitleSet( this, e );
    }		
Ejemplo n.º 3
0
		private void OptionsMenu_ItemClick( object sender, YAF.Controls.PopEventArgs e )
		{
			switch ( e.Item.ToLower() )
			{
				case "print":
					YAF.Classes.Utils.YafBuildLink.Redirect( YAF.Classes.Utils.ForumPages.printtopic, "t={0}", PageContext.PageTopicID );
					break;
				case "watch":
					TrackTopic_Click( sender, e );
					break;
				case "email":
					EmailTopic_Click( sender, e );
					break;
				case "rssfeed":
					YAF.Classes.Utils.YafBuildLink.Redirect( YAF.Classes.Utils.ForumPages.rsstopic, "pg={0}&t={1}", Request.QueryString ["g"], PageContext.PageTopicID );
					break;
				default:
					throw new ApplicationException( e.Item );
			}
		}