Аргументы события MessageNavigate
Inheritance: System.EventArgs
 /// <summary>
 /// Осуществляет вызов события MessageNavigate
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnMessageNavigate(MessageNavigateEventArgs e)
 {
     if (MessageNavigate != null)
     {
         MessageNavigate(this, e);
     }
 }
Exemple #2
0
		/// <summary>
		/// Перейти на новое сообщение
		/// </summary>
		/// <param name="msgId">идентификатор сообщения</param>
		public void Navigate(int msgId)
		{
			if (_currentEntry != null && _currentEntry.MessageId == msgId)
				return;

			if (_currentEntry != null)
				_backPath.Insert(0, _currentEntry);
			_forwardPath.Clear();

			var e = new MessageNavigateEventArgs(
				msgId, HistoryNavigationType.Navigate);
			OnMessageNavigate(e);

			_currentEntry = new MessageViewHistoryEntry(msgId, e.MessageSubject);
		}
        /// <summary>
        /// Перейти на новое сообщение
        /// </summary>
        /// <param name="msgId">идентификатор сообщения</param>
        public void Navigate(int msgId)
        {
            if (_currentEntry != null && _currentEntry.MessageId == msgId)
            {
                return;
            }

            if (_currentEntry != null)
            {
                _backPath.Insert(0, _currentEntry);
            }
            _forwardPath.Clear();

            var e = new MessageNavigateEventArgs(
                msgId, HistoryNavigationType.Navigate);

            OnMessageNavigate(e);

            _currentEntry = new MessageViewHistoryEntry(msgId, e.MessageSubject);
        }
Exemple #4
0
        private void HistoryNavigateFired(object sender, MessageNavigateEventArgs e)
        {
            if (!NavigationMode)
            {
                SelectMessage(_viewHistory.CurrentEntry.MessageId);
            }

            if (Forums.Instance.ActiveForum != null)
            {
                var msg = Forums.Instance.ActiveForum.ActiveMsg;
                if (msg != null)
                {
                    e.MessageSubject = msg.Subject;
                }
            }

            if (MessageNavigated != null)
            {
                MessageNavigated(this, EventArgs.Empty);
            }
        }
Exemple #5
0
		/// <summary>
		/// Осуществляет вызов события MessageNavigate
		/// </summary>
		/// <param name="e"></param>
		protected virtual void OnMessageNavigate(MessageNavigateEventArgs e)
		{
			if (MessageNavigate != null)
				MessageNavigate(this, e);
		}
Exemple #6
0
		private void HistoryNavigateFired(object sender, MessageNavigateEventArgs e)
		{
			if (!NavigationMode)
				SelectMessage(_viewHistory.CurrentEntry.MessageId);

			if (Forums.Instance.ActiveForum != null)
			{
				var msg = Forums.Instance.ActiveForum.ActiveMsg;
				if (msg != null)
					e.MessageSubject = msg.Subject;
			}

			if (MessageNavigated != null)
				MessageNavigated(this, EventArgs.Empty);
		}