Esempio n. 1
0
 /// <summary>
 /// Opens the tags publications page.
 /// </summary>
 /// <param name="args">The args.</param>
 public void OpenTagsPublicationsPage(TagsArgs args)
 {
     if (this.searchPublicationPage == null)
     {
         this.CreateTagsPublicationsPage(args);
     }
     this.searchPublicationPage.LoadPublications(tagsController.GetPublicationsWithTag(args.Tag.Id, 10, 0));
     searchPublicationPage.BringToFront();
     searchPublicationPage.Show();
 }
Esempio n. 2
0
 /// <summary>
 /// Creates the tags publications page.
 /// </summary>
 /// <param name="args">The args.</param>
 public void CreateTagsPublicationsPage(TagsArgs args)
 {
     try
     {
         this.searchPublicationPage = new PublicationsSearchResult();
         this.searchPublicationPage.LoadTitle(args.Tag);
         this.searchPublicationPage.LoadPublications(tagsController.GetPublicationsWithTag(args.Tag.Id, 10, 0));
         this.searchPublicationPage.Dock            = DockStyle.Fill;
         this.searchPublicationPage.SubscribeToTag += new Delegates.Delegates.SubscribeToTagHandler(searchPage_SubscribeToTag);
         this.searchPublicationPage.ChangeTagsPage += new PublicationsSearchResult.ChangeTagsPageHandler(searchPage_ChangeTagsPage);
         this.pContent.Controls.Add(searchPublicationPage);
         searchPublicationPage.BringToFront();
         searchPublicationPage.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Creates the group publications page.
 /// </summary>
 /// <param name="args">The args.</param>
 public void CreateGroupPublicationsPage(GroupsArgs args)
 {
     try
     {
         this.searchPublicationPage = new PublicationsSearchResult();
         this.searchPublicationPage.LoadTitle(args.Group);
         Guid newToken = Session.CurrentToken;
         this.searchPublicationPage.LoadPublications(publicationController.GetPublicationsForGroup(out newToken, args.Group.Id, Session.CurrentToken, Session.User.Id, 10, 0));
         Session.CurrentToken                         = newToken;
         this.searchPublicationPage.Dock              = DockStyle.Fill;
         this.searchPublicationPage.SubscribeToGroup += new Delegates.Delegates.SubscribeToGroupHandler(searchPublicationPage_SubscribeToGroup);
         this.searchPublicationPage.ChangeGroupsPage += new PublicationsSearchResult.ChangeGroupsPageHandler(searchPublicationPage_ChangeGroupsPage);
         this.pContent.Controls.Add(searchPublicationPage);
         searchPublicationPage.BringToFront();
         searchPublicationPage.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Creates the users publications page.
 /// </summary>
 /// <param name="args">The args.</param>
 public void CreateUsersPublicationsPage(UsersArgs args)
 {
     try
     {
         this.searchPublicationPage = new PublicationsSearchResult();
         this.searchPublicationPage.LoadTitle(args.User);
         Guid newToken = Session.CurrentToken;
         this.searchPublicationPage.LoadPublications(publicationController.GetUserPublications(out newToken, Session.User.Id, Session.CurrentToken, args.User.Id, 10, args.Page, true, true));
         Session.CurrentToken                        = newToken;
         this.searchPublicationPage.Dock             = DockStyle.Fill;
         this.searchPublicationPage.FollowUser      += new Delegates.Delegates.FollowUserHandler(searchPublicationPage_FollowUser);
         this.searchPublicationPage.ChangeUsersPage += new PublicationsSearchResult.ChangeUsersPageHandler(searchPublicationPage_ChangeUsersPage);
         this.pContent.Controls.Add(searchPublicationPage);
         searchPublicationPage.BringToFront();
         searchPublicationPage.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }