public static void Show(long ownerId, long priceFrom, long priceTo, int currencyId, string currencyName, SearchParams searchParams = null)
        {
            if (ProductsSearchResultsUC.IsShowed)
            {
                return;
            }
            ProductsSearchResultsUC.IsShowed = true;
            DialogService   dialogService   = new DialogService();
            SolidColorBrush solidColorBrush = new SolidColorBrush(Colors.Black);
            double          num1            = 0.4;

            ((Brush)solidColorBrush).Opacity = num1;
            dialogService.BackgroundBrush    = (Brush)solidColorBrush;
            int num2 = 0;

            dialogService.HideOnNavigation = num2 != 0;
            int num3 = 1;

            dialogService.HasPopup = num3 != 0;
            int num4 = 6;

            dialogService.AnimationType                 = (DialogService.AnimationTypes)num4;
            ProductsSearchResultsUC._dialogService      = dialogService;
            ProductsSearchResultsUC._childUC            = new ProductsSearchResultsUC();
            ProductsSearchResultsUC._childVM            = new ProductsSearchResultsViewModel(ownerId, priceFrom, priceTo, currencyId, currencyName, searchParams);
            ProductsSearchResultsUC._childUC._viewModel = ProductsSearchResultsUC._childVM;
            ((FrameworkElement)ProductsSearchResultsUC._childUC).DataContext = ProductsSearchResultsUC._childUC._viewModel;
            ProductsSearchResultsUC._dialogService.Opened += (EventHandler)((sender, args) => ((Control)ProductsSearchResultsUC._childUC.textBoxSearch).Focus());
            ProductsSearchResultsUC._dialogService.Closed += (EventHandler)((sender, args) => ProductsSearchResultsUC.IsShowed = false);
            ProductsSearchResultsUC._dialogService.Child   = (FrameworkElement)ProductsSearchResultsUC._childUC;
            ProductsSearchResultsUC._dialogService.Show(null);
        }
 protected override void HandleOnNavigatedTo(NavigationEventArgs e)
 {
     base.HandleOnNavigatedTo(e);
     if (!this._isInitialized)
     {
         this._viewModel = new MarketMainViewModel(long.Parse(this.NavigationContext.QueryString["OwnerId"]));
         this._viewModel.ReloadData();
         this.DataContext = (object)this._viewModel;
         CurrentMarketItemSource.Source = MarketItemSource.market;
         this._isInitialized            = true;
     }
     if (!ProductsSearchResultsUC.IsShowed || ProductsSearchResultsUC.IsAnyParamSet())
     {
         return;
     }
     ProductsSearchResultsUC.Hide();
 }