Ejemplo n.º 1
0
		private void AfterForumEntryChanged(ForumEntryChangedEventArgs arg)
		{
			if ((arg.ChangeType & ForumEntryChangeType.ReadMark) == 0)
				return;

			UpdateAggregates();

			_aggregatesChanged.OnNext(EventArgs.Empty);
		} 
Ejemplo n.º 2
0
        private void AfterForumEntryChanged(ForumEntryChangedEventArgs arg)
        {
            if ((arg.ChangeType & ForumEntryChangeType.ReadMark) == 0)
            {
                return;
            }

            UpdateAggregates();

            _aggregatesChanged.OnNext(EventArgs.Empty);
        }
Ejemplo n.º 3
0
        private void BeforeForumEntryChanged(ForumEntryChangedEventArgs args)
        {
            _asyncOperation.Send(
                () =>
            {
                bool isWholeForum;
                if (Forums.Instance.ActiveForum == null ||
                    !args.Entries.IsContainsForum(Forums.Instance.ActiveForum.ID, out isWholeForum))
                {
                    return;
                }

                if (isWholeForum)
                {
                    _tgMsgs.Nodes = null;
                }
                StopMarkTimer();
            });
        }
Ejemplo n.º 4
0
        private void AfterForumEntryChanged(ForumEntryChangedEventArgs args)
        {
            _asyncOperation.Send(
                () =>
            {
                bool isWholeForum;
                if (Forums.Instance.ActiveForum == null ||
                    !args.Entries.IsContainsForum(Forums.Instance.ActiveForum.ID, out isWholeForum))
                {
                    return;
                }

                if (isWholeForum)
                {
                    _tgMsgs.Nodes      = Forums.Instance.ActiveForum.Msgs;
                    _tgMsgs.ActiveNode = Forums.Instance.ActiveForum.ActiveMsg;
                }
                _tgMsgs.Invalidate();
            });
        }
Ejemplo n.º 5
0
		private void AfterForumEntryChanged(ForumEntryChangedEventArgs args)
		{
			_asyncOperation.Send(
				() =>
				{
					bool isWholeForum;
					if (Forums.Instance.ActiveForum == null ||
							!args.Entries.IsContainsForum(Forums.Instance.ActiveForum.ID, out isWholeForum))
						return;

					if (isWholeForum)
					{
						_tgMsgs.Nodes = Forums.Instance.ActiveForum.Msgs;
						_tgMsgs.ActiveNode = Forums.Instance.ActiveForum.ActiveMsg;
					}
					_tgMsgs.Invalidate();
				});
		}
Ejemplo n.º 6
0
		private void BeforeForumEntryChanged(ForumEntryChangedEventArgs args)
		{
			_asyncOperation.Send(
				() =>
				{
					bool isWholeForum;
					if (Forums.Instance.ActiveForum == null ||
							!args.Entries.IsContainsForum(Forums.Instance.ActiveForum.ID, out isWholeForum))
						return;

					if (isWholeForum)
						_tgMsgs.Nodes = null;
					StopMarkTimer();
				});
		}