Skip to content

Commit 5c260cc

Browse files
committed
Reintroduced DeleteEventArgs class as [Obsolete]
This was renamed to `TopicDeleteEventArgs`. This provides instructions to callers of the original class name.
1 parent 24071bf commit 5c260cc

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*==============================================================================================================================
2+
| Author Ignia, LLC
3+
| Client Ignia, LLC
4+
| Project Topics Library
5+
\=============================================================================================================================*/
6+
using System;
7+
8+
namespace OnTopic.Repositories {
9+
10+
/*============================================================================================================================
11+
| CLASS: DELETE EVENT ARGS
12+
\---------------------------------------------------------------------------------------------------------------------------*/
13+
/// <summary>
14+
/// The DeleteEventArgs class defines an event argument type specific to deletion events
15+
/// </summary>
16+
[Obsolete("The DeleteEventArgs has been renamed to TopicEventArgs", true)]
17+
public class DeleteEventArgs : EventArgs {
18+
19+
/*==========================================================================================================================
20+
| CONSTRUCTOR: TAXONOMY DELETE EVENT ARGS
21+
\-------------------------------------------------------------------------------------------------------------------------*/
22+
/// <summary>
23+
/// Initializes a new instance of the <see cref="DeleteEventArgs"/> class.
24+
/// </summary>
25+
/// <param name="topic">The topic.</param>
26+
public DeleteEventArgs(Topic topic) : base() {
27+
Topic = topic;
28+
}
29+
30+
/*==========================================================================================================================
31+
| PROPERTY: TOPIC
32+
\-------------------------------------------------------------------------------------------------------------------------*/
33+
/// <summary>
34+
/// Getter that returns the Topic object associated with the event
35+
/// </summary>
36+
public Topic Topic { get; set; }
37+
38+
} //Class
39+
} //Namespace

0 commit comments

Comments
 (0)