Event args used when the state of a message changes.
Event args used when the state of a message changes.
Inheritance: System.EventArgs
Beispiel #1
0
		void MessageExpunged_TaskThread (object sender, MessageEventArgs e)
		{
			// proxy back to the main thread
			Invoke (new EventHandler<MessageEventArgs> (MessageExpunged), sender, e);
		}
Beispiel #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);
		}
Beispiel #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 ();
			}
		}
Beispiel #4
0
 protected virtual void Inbox_MessageExpunged(object sender, MessageEventArgs e)
 {
     var wrapperArgs = new MessageEventArgsWrapper(e.Index);
     MessageExpunged?.Invoke(sender, wrapperArgs);
 }