Esempio n. 1
0
		public void UpdateInboxThreads(ThreadUsr.StatusEnum changeStatus, IBobType invitingBob)
		{
			UpdateThreadUsrs(changeStatus, ThreadUsr.InboxStatuses, invitingBob);
		}
Esempio n. 2
0
		public void UpdateWatchingThreads(ThreadUsr.StatusEnum changeStatus, IBobType invitingBob)
		{
			UpdateThreadUsrs(changeStatus, ThreadUsr.WatchingStatuses, invitingBob);
		}
Esempio n. 3
0
		public void UpdateThreadUsrs(ThreadUsr.StatusEnum changeStatus, List<ThreadUsr.StatusEnum> threadStatusesToChange, IBobType invitingBob)
		{
			if (invitingBob != null)
				UpdateThreadUsrs(changeStatus, threadStatusesToChange, invitingBob.ObjectType, invitingBob.K);
			else
				UpdateThreadUsrs(changeStatus, threadStatusesToChange, null, null);
		}
Esempio n. 4
0
		public void SmartDelete(ThreadUsr.StatusEnum threadStatusToChange, IBobType invitingBob)
		{
			if (invitingBob != null)
				SmartDelete(threadStatusToChange, invitingBob.ObjectType, invitingBob.K);
			else
				SmartDelete(threadStatusToChange, null, null);
		}
Esempio n. 5
0
		private void SetupWatchingDropDownList(IBobType bobType, DropDownList ddl, Label notWatchingLabel, bool isNews)
		{
			if (ddl != null)
			{
				ddl.Items.Clear();
				ddl.Items.Add(new ListItem("No change", ""));

				if (bobType.ObjectType == Model.Entities.ObjectType.Group)
				{
					if (((Group)bobType).IsMember(Usr.Current))
					{
						if (!isNews && CommentAlert.IsEnabled(Usr.Current.K, bobType.K, bobType.ObjectType))
							ddl.Items.Add(new ListItem(STOP_WATCHING, STOP_WATCHING));

						ddl.Items.Add(new ListItem(EXIT_GROUP, EXIT_GROUP));
					}
					else
					{
						notWatchingLabel.Visible = true;
						notWatchingLabel.Text = "<small>Not member of " + bobType.TypeName.ToLower() + "</small>";
						ddl.Visible = false;
					}
				}
				else
				{
					if (CommentAlert.IsEnabled(Usr.Current.K, bobType.K, bobType.ObjectType))
						ddl.Items.Add(new ListItem(STOP_WATCHING, STOP_WATCHING));
					else
					{
						notWatchingLabel.Visible = true;
						notWatchingLabel.Text = "<small>Not watching " + bobType.TypeName.ToLower() + "</small>";
						ddl.Visible = false;
					}
				}
			}
		}
Esempio n. 6
0
		public void UpdateThreadUsrs(ThreadUsr.StatusEnum changeStatus, ThreadUsr.StatusEnum threadStatusToChange, IBobType invitingBob)
		{
			UpdateThreadUsrs(changeStatus, new List<ThreadUsr.StatusEnum>() { threadStatusToChange }, invitingBob);
		}
Esempio n. 7
0
		private void AnchorSkipSpamPage(IBobType iBobType, bool isNews)
		{
			((Spotted.Master.DsiPage)Page).AnchorSkip(iBobType.TypeName + (isNews ? "News" : "Watch") + "PanelAnchor");
		}
Esempio n. 8
0
		private void AnchorSkipSpamPage(IBobType iBobType)
		{
			AnchorSkipSpamPage(iBobType, false);
		}
Esempio n. 9
0
		public void SuccessfulStatusMessage(IBobType bobType, bool isIgnoreAll, bool isNews)
		{
			//StatusMessage("You have " + (isIgnoreAll ? "ignored" : "removed") + " all inbox " + (isNews ? "news " : "") + "spam from " + bobType.TypeName.ToLower() + ": " + bobType.Name);
		}
Esempio n. 10
0
		public void SuccessfulStatusMessage(IBobType bobType, bool isIgnoreAll)
		{
			//SuccessfulStatusMessage(bobType, isIgnoreAll, false);
		}
Esempio n. 11
0
		public void SuccessfulStatusMessage(IBobType bobType)
		{
			//SuccessfulStatusMessage(bobType, false, false);
		}