forked from rubberduck-vba/Rubberduck
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/next' into rkapka-master
# Conflicts: # RetailCoder.VBE/Rubberduck.csproj
- Loading branch information
Showing
48 changed files
with
384 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using System.Xml.Serialization; | ||
using Rubberduck.UI; | ||
|
||
namespace Rubberduck.Settings | ||
{ | ||
public class ExperimentalFeatures : ViewModelBase | ||
{ | ||
private bool _isEnabled; | ||
public bool IsEnabled | ||
{ | ||
get { return _isEnabled; } | ||
set | ||
{ | ||
_isEnabled = value; | ||
OnPropertyChanged(); | ||
} | ||
} | ||
|
||
private string _key; | ||
public string Key | ||
{ | ||
get { return _key; } | ||
set | ||
{ | ||
_key = value; | ||
OnPropertyChanged(); | ||
OnPropertyChanged(nameof(DisplayValue)); | ||
} | ||
} | ||
|
||
[XmlIgnore] | ||
public string DisplayValue => Key == null ? string.Empty : RubberduckUI.ResourceManager.GetString(Key); | ||
|
||
public override string ToString() | ||
{ | ||
return Key; | ||
} | ||
|
||
public override bool Equals(object obj) | ||
{ | ||
return obj is ExperimentalFeatures value && | ||
value.IsEnabled == IsEnabled && | ||
value.Key == Key; | ||
} | ||
|
||
public override int GetHashCode() | ||
{ | ||
unchecked | ||
{ | ||
return (IsEnabled.GetHashCode() * 397) ^ (Key != null ? Key.GetHashCode() : 0); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
RetailCoder.VBE/UI/Command/MenuItems/SourceControlCommandMenuItem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.