File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed
xivModdingFramework/Mods/DataContainers Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 15
15
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
17
17
using System ;
18
+ using System . ComponentModel ;
18
19
19
20
namespace xivModdingFramework . Mods . DataContainers
20
21
{
21
- public class SimpleModPackEntries : IComparable < SimpleModPackEntries >
22
+ public class SimpleModPackEntries : IComparable < SimpleModPackEntries > , INotifyPropertyChanged
22
23
{
24
+ private bool isSelected ;
25
+
23
26
/// <summary>
24
27
/// The name of the item
25
28
/// </summary>
@@ -70,6 +73,24 @@ public class SimpleModPackEntries : IComparable<SimpleModPackEntries>
70
73
/// </summary>
71
74
public ModsJson JsonEntry { get ; set ; }
72
75
76
+ /// <summary>
77
+ /// Is this entry selected in the ui
78
+ /// </summary>
79
+ public bool IsSelected
80
+ {
81
+ get
82
+ {
83
+ return isSelected ;
84
+ }
85
+ set
86
+ {
87
+ isSelected = value ;
88
+ this . PropertyChanged ? . Invoke ( this , new PropertyChangedEventArgs ( nameof ( IsSelected ) ) ) ;
89
+ }
90
+ }
91
+
92
+ public event PropertyChangedEventHandler PropertyChanged ;
93
+
73
94
public int CompareTo ( SimpleModPackEntries obj )
74
95
{
75
96
return Name . CompareTo ( obj . Name ) ;
You can’t perform that action at this time.
0 commit comments