Skip to content

Commit

Permalink
Merge pull request #87 from Lehonti/improvement5
Browse files Browse the repository at this point in the history
Sealed classes in `NodeChangedEventArgs.cs`
  • Loading branch information
umaranis authored Sep 6, 2023
2 parents 152f685 + 1fd5c0f commit 9368442
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions MindMate/Model/NodeChangedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,47 +4,44 @@
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MindMate.Model
{
public class NodePropertyChangedEventArgs : EventArgs
public sealed class NodePropertyChangedEventArgs : EventArgs
{
public NodeProperties ChangedProperty { get; set; }
public object OldValue { get; set; }
}

public class TreeStructureChangedEventArgs : EventArgs
public sealed class TreeStructureChangedEventArgs : EventArgs
{
public TreeStructureChange ChangeType { get; set; }

}

public class IconChangedEventArgs : EventArgs
public sealed class IconChangedEventArgs : EventArgs
{
public IconChange ChangeType { get; set; }
public string Icon { get; set; }
}

public class AttributeChangeEventArgs : EventArgs
public sealed class AttributeChangeEventArgs : EventArgs
{
public AttributeChange ChangeType { get; set; }
public MapTree.AttributeSpec AttributeSpec { get; set; }
public string oldValue { get; set; }
}

public class AttributeChangingEventArgs : EventArgs
public sealed class AttributeChangingEventArgs : EventArgs
{
public AttributeChange ChangeType { get; set; }
public MapTree.AttributeSpec AttributeSpec { get; set; }
public string NewValue { get; set; }
public string NewValue { get; set; }
}

public class TreeDefaultFormatChangedEventArgs : EventArgs
public sealed class TreeDefaultFormatChangedEventArgs : EventArgs
{
public TreeFormatChange ChangeType { get; set; }
public object OldValue { get; set; }
public object OldValue { get; set; }
}
}

0 comments on commit 9368442

Please sign in to comment.