Skip to content

Commit

Permalink
Fixed more obsolete method warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
IngvarX committed Oct 15, 2020
1 parent 6200cc4 commit 80bf72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace Camelot.ViewModels.Implementations.MainWindow.FilePanels
{
public class SearchViewModel : ValidatableViewModelBase<SearchViewModel>, ISearchViewModel
public class SearchViewModel : ValidatableViewModelBase, ISearchViewModel
{
private readonly IRegexService _regexService;

Expand Down Expand Up @@ -42,10 +42,8 @@ public SearchViewModel(
_regexService = regexService;
Reset();

this.ValidationRule(vm => vm.SearchText,
vm =>
this.WhenAnyValue(x => x.IsRegexSearchEnabled, x => x.SearchText).Select(_ => IsValid),
vm => resourceProvider.GetResourceByName(searchViewModelConfiguration.InvalidRegexResourceName));
this.ValidationRule(this.WhenAnyValue(x => x.IsRegexSearchEnabled, x => x.SearchText).Select(_ => IsValid),
resourceProvider.GetResourceByName(searchViewModelConfiguration.InvalidRegexResourceName));
this.WhenAnyValue(x => x.SearchText, x => x.IsSearchEnabled,
x => x.IsRegexSearchEnabled, x => x.IsSearchCaseSensitive)
.Throttle(TimeSpan.FromMilliseconds(searchViewModelConfiguration.TimeoutMs))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Camelot.ViewModels.Implementations
{
public class ValidatableViewModelBase<TViewModel> : ReactiveValidationObject<TViewModel>
public class ValidatableViewModelBase : ReactiveValidationObject
{

}
Expand Down

0 comments on commit 80bf72a

Please sign in to comment.