|
|
@ -25,7 +25,7 @@ namespace ICSharpCode.AvalonEdit.AddIn.Snippets |
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public class CodeSnippet : INotifyPropertyChanged, IEquatable<CodeSnippet> |
|
|
|
public class CodeSnippet : INotifyPropertyChanged, IEquatable<CodeSnippet> |
|
|
|
{ |
|
|
|
{ |
|
|
|
string name, description, text, keyword; |
|
|
|
string name = string.Empty, description = string.Empty, text = string.Empty, keyword = string.Empty; |
|
|
|
|
|
|
|
|
|
|
|
public CodeSnippet() |
|
|
|
public CodeSnippet() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -43,7 +43,7 @@ namespace ICSharpCode.AvalonEdit.AddIn.Snippets |
|
|
|
get { return name; } |
|
|
|
get { return name; } |
|
|
|
set { |
|
|
|
set { |
|
|
|
if (name != value) { |
|
|
|
if (name != value) { |
|
|
|
name = value; |
|
|
|
name = value ?? string.Empty; |
|
|
|
OnPropertyChanged("Name"); |
|
|
|
OnPropertyChanged("Name"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -53,7 +53,7 @@ namespace ICSharpCode.AvalonEdit.AddIn.Snippets |
|
|
|
get { return text; } |
|
|
|
get { return text; } |
|
|
|
set { |
|
|
|
set { |
|
|
|
if (text != value) { |
|
|
|
if (text != value) { |
|
|
|
text = value; |
|
|
|
text = value ?? string.Empty; |
|
|
|
OnPropertyChanged("Text"); |
|
|
|
OnPropertyChanged("Text"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -63,7 +63,7 @@ namespace ICSharpCode.AvalonEdit.AddIn.Snippets |
|
|
|
get { return description; } |
|
|
|
get { return description; } |
|
|
|
set { |
|
|
|
set { |
|
|
|
if (description != value) { |
|
|
|
if (description != value) { |
|
|
|
description = value; |
|
|
|
description = value ?? string.Empty; |
|
|
|
OnPropertyChanged("Description"); |
|
|
|
OnPropertyChanged("Description"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -81,7 +81,7 @@ namespace ICSharpCode.AvalonEdit.AddIn.Snippets |
|
|
|
get { return keyword; } |
|
|
|
get { return keyword; } |
|
|
|
set { |
|
|
|
set { |
|
|
|
if (keyword != value) { |
|
|
|
if (keyword != value) { |
|
|
|
keyword = value; |
|
|
|
keyword = value ?? string.Empty; |
|
|
|
OnPropertyChanged("Keyword"); |
|
|
|
OnPropertyChanged("Keyword"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|