Пример #1
0
        public MainPage()
        {
            if (ParametersSearch == null)
            {
                ParametersSearch = new ParametersSearch(_parameterSearchEvents);
            }

            InitializeComponent();

            _parameterSearchEvents.ChangedItemSearch += _parameterSearchEvents_ChangedItemSearch;

            SystemNavigationManager.GetForCurrentView().BackRequested += (s, e) =>
            {
                TryGoBack(e);

                FillListMethods();
            };
        }
Пример #2
0
 private void PageMainPage_Unloaded(object sender, RoutedEventArgs e)
 {
     ParametersSearch?.Dispose();
 }
Пример #3
0
 private void NavigatingPage(Type typePage, object param = null)
 {
     ParametersSearch?.SaveSettings();
     Navigating.Navigate(typePage, param);
 }