Skip to content

Commit 7889fa1

Browse files
committed
Reinstate priorities for backward compatibility only.
1 parent e630de1 commit 7889fa1

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

RetailCoder.VBE/Settings/ToDoMarkers.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
22
using System.Xml.Serialization;
3-
using Rubberduck.ToDoItems;
4-
using Rubberduck.UI;
53

64
namespace Rubberduck.Settings
75
{
@@ -17,6 +15,10 @@ public class ToDoMarker : IToDoMarker
1715
[XmlAttribute]
1816
public string Text { get; set; }
1917

18+
[Obsolete]
19+
[XmlIgnore]
20+
public TodoPriority Priority { get; set; }
21+
2022
/// <summary> Default constructor is required for serialization. DO NOT USE. </summary>
2123
public ToDoMarker()
2224
{
@@ -28,6 +30,11 @@ public ToDoMarker(string text)
2830
Text = text;
2931
}
3032

33+
[Obsolete]
34+
public ToDoMarker(string text, TodoPriority priority) : this(text)
35+
{
36+
}
37+
3138
/// <summary> Convert this object into a string representation. Over-riden for easy databinding.</summary>
3239
/// <returns> The Text property. </returns>
3340
public override string ToString()
@@ -49,4 +56,9 @@ public override int GetHashCode()
4956
return Text.GetHashCode();
5057
}
5158
}
59+
60+
public enum TodoPriority
61+
{
62+
Low, Medium, High
63+
}
5264
}

0 commit comments

Comments
 (0)