Skip to content

Commit a50da2a

Browse files
committed
Reintroduced RenameEventArgs class as [Obsolete]
This was renamed to `TopicRenameEventArgs`. This provides instructions to callers of the original class name.
1 parent 7971f76 commit a50da2a

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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: RENAME EVENT ARGS
12+
\---------------------------------------------------------------------------------------------------------------------------*/
13+
/// <summary>
14+
/// The RenameEventArgs object defines an event argument type specific to rename events.
15+
/// </summary>
16+
[Obsolete("The RenameEventArgs have been renamed to TopicEventArgs.", true)]
17+
public class RenameEventArgs : EventArgs {
18+
19+
/*==========================================================================================================================
20+
| CONSTRUCTOR: TAXONOMY RENAME EVENT ARGS
21+
\-------------------------------------------------------------------------------------------------------------------------*/
22+
/// <summary>
23+
/// Initializes a new instance of the <see cref="RenameEventArgs"/> class and sets the <see cref="Topic"/> property based
24+
/// on the specified object.
25+
/// </summary>
26+
/// <param name="topic">The topic object associated with the rename event.</param>
27+
public RenameEventArgs(Topic topic) {
28+
Topic = topic;
29+
}
30+
31+
/*==========================================================================================================================
32+
| PROPERTY: TOPIC
33+
\-------------------------------------------------------------------------------------------------------------------------*/
34+
/// <summary>
35+
/// Gets or sets the Topic object associated with the event.
36+
/// </summary>
37+
/// <value>
38+
/// The topic.
39+
/// </value>
40+
public Topic Topic { get; }
41+
42+
} //Class
43+
} //Namespace

0 commit comments

Comments
 (0)