Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5213 from retailcoder/versioncheck
Versioncheck tweaks and accidental fix for xml-doc analyzer
- Loading branch information
Showing
12 changed files
with
216 additions
and
71 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,56 @@ | ||
using Rubberduck.Settings; | ||
|
||
namespace Rubberduck.UI.Settings | ||
{ | ||
public class HotkeySettingViewModel : ViewModelBase | ||
{ | ||
private readonly HotkeySetting wrapped; | ||
|
||
public HotkeySettingViewModel(HotkeySetting wrapped) | ||
{ | ||
this.wrapped = wrapped; | ||
} | ||
|
||
public HotkeySetting Unwrap() { return wrapped; } | ||
|
||
public string Key1 | ||
{ | ||
get { return wrapped.Key1; } | ||
set { wrapped.Key1 = value; OnPropertyChanged(); } | ||
} | ||
|
||
public bool IsEnabled | ||
{ | ||
get { return wrapped.IsEnabled; } | ||
set { wrapped.IsEnabled = value; OnPropertyChanged(); } | ||
} | ||
|
||
public bool HasShiftModifier | ||
{ | ||
get { return wrapped.HasShiftModifier; } | ||
set { wrapped.HasShiftModifier = value; OnPropertyChanged(); OnPropertyChanged(nameof(IsValid)); } | ||
} | ||
|
||
public bool HasAltModifier | ||
{ | ||
get { return wrapped.HasAltModifier; } | ||
set { wrapped.HasAltModifier = value; OnPropertyChanged(); OnPropertyChanged(nameof(IsValid)); } | ||
} | ||
|
||
public bool HasCtrlModifier | ||
{ | ||
get { return wrapped.HasCtrlModifier; } | ||
set { wrapped.HasCtrlModifier = value; OnPropertyChanged(); OnPropertyChanged(nameof(IsValid)); } | ||
} | ||
|
||
public string CommandTypeName | ||
{ | ||
get { return wrapped.CommandTypeName; } | ||
set { wrapped.CommandTypeName = value; OnPropertyChanged(); } | ||
} | ||
|
||
public bool IsValid { get { return wrapped.IsValid; } } | ||
// FIXME If this is the only use, the property should be inlined to here | ||
public string Prompt { get { return wrapped.Prompt; } } | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
using System; | ||
using Rubberduck.Settings; | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace Rubberduck.VersionCheck | ||
{ | ||
public interface IVersionCheck | ||
{ | ||
Task<Version> GetLatestVersionAsync(CancellationToken token = default); | ||
Task<Version> GetLatestVersionAsync(GeneralSettings settings, CancellationToken token = default); | ||
Version CurrentVersion { get; } | ||
} | ||
} |
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.