Example #1
0
        protected override Task <bool> SaveAsync()
        {
            FilterScheme.Title = FilterSchemeTitle;
            _originalFilterScheme.Update(FilterScheme);

            return(TaskHelper <bool> .FromResult(true));
        }
Example #2
0
        protected override async Task <bool> SaveAsync()
        {
            if (FilterScheme.HasInvalidConditionItems && await _messageService.ShowAsync(_languageService.GetString("FilterBuilder_SaveBroken"),
                                                                                         _languageService.GetString("FilterBuilder_AreYouSure"), MessageButton.YesNo) == MessageResult.No)
            {
                return(false);
            }

            FilterScheme.Title = FilterSchemeTitle;
            _originalFilterScheme.Update(FilterScheme);

            return(true);
        }