Event args used when the state of a message changes.
Event args used when the state of a message changes.
Inheritance: System.EventArgs
Esempio n. 1
0
		void MessageExpunged_TaskThread (object sender, MessageEventArgs e)
		{
			// proxy back to the main thread
			Invoke (new EventHandler<MessageEventArgs> (MessageExpunged), sender, e);
		}
Esempio n. 2
0
		/// <summary>
		/// Raise the message expunged event.
		/// </summary>
		/// <remarks>
		/// Raises the message expunged event.
		/// </remarks>
		/// <param name="args">The message expunged event args.</param>
		protected virtual void OnMessageExpunged (MessageEventArgs args)
		{
			var handler = MessageExpunged;

			if (handler != null)
				handler (this, args);
		}
Esempio n. 3
0
		void MessageExpunged (object sender, MessageEventArgs e)
		{
			if (e.Index < messages.Count) {
				var info = messages[e.Index];
				var node = map[info];

				messages.RemoveAt (e.Index);
				map.Remove (info);
				node.Remove ();
			}
		}
Esempio n. 4
0
 protected virtual void Inbox_MessageExpunged(object sender, MessageEventArgs e)
 {
     var wrapperArgs = new MessageEventArgsWrapper(e.Index);
     MessageExpunged?.Invoke(sender, wrapperArgs);
 }