Пример #1
0
        protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
        {
            settingManager.SaveSettings();

            base.OnNavigatedFrom(e);
        }
 private void Frame_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
 }
 private void Player_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     this.DisableJavascript();
 }
Пример #4
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            if ((App.Current as App).loadData == true)
            {
                base.OnNavigatedTo(e);
                string parent_category_id   = "";
                string parent_category_name = "";
                string msg = "";
                if (NavigationContext.QueryString.TryGetValue("category_id", out msg))
                {
                    parent_category_id      = msg;
                    this.parent_category_id = parent_category_id;
                }
                if (NavigationContext.QueryString.TryGetValue("category_name", out msg))
                {
                    parent_category_name      = msg;
                    this.parent_category_name = parent_category_name;
                }

                lblChildCategory_Name.Text = parent_category_name;


                if (!isGetDataFromFile()) //API Response de xem lay du lieu tu Server hay lay du lieu tu Storage
                {
                    enableProgressBar();
                    BindingDataChildCategory_ServerData();
                }
                else
                {
                    if (this.parent_category_id.Equals("13"))
                    {
                        this.childCategoryFile = "music_child_category.json";
                    }
                    else if (this.parent_category_id.Equals("14"))
                    {
                        this.childCategoryFile = "phim_child_category.json";
                    }
                    else if (this.parent_category_id.Equals("15"))
                    {
                        this.childCategoryFile = "clip_child_category.json";
                    }
                    else if (this.parent_category_id.Equals("16"))
                    {
                        this.childCategoryFile = "live_child_category.json";
                    }
                    else if (this.parent_category_id.Equals("552"))
                    {
                        this.childCategoryFile = "radio_child_category.json";
                    }
                    else if (this.parent_category_id.Equals("685"))
                    {
                        this.childCategoryFile = "news_child_category.json";
                    }
                    else
                    {
                        this.childCategoryFile = "child_category.json";
                    }
                    BindingDataParentCategory_FixData(folder, childCategoryFile);
                }
            }
            else
            {
                (App.Current as App).loadData = true;
                base.OnNavigatedTo(e);
            }
        }
Пример #5
0
 void browser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
 }
Пример #6
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     sc.get_doc_catCompleted += sc_get_doc_catCompleted;
     sc.get_doc_catAsync();
 }
Пример #8
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            this.DataContext = App.ViewModel;

            base.OnNavigatedTo(e);
        }
Пример #9
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     AppReportingService.Flurry_Page_Init();
 }
Пример #10
0
 private void NavigationService_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     this.Load();
 }
 protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
 {
     base.OnNavigatedFrom(e);
     viewModel.ItemUpdated             -= new EventHandler <ItemUpdatedEventArgs>(OnItemUpdated);
     viewModel.InitializationCompleted -= new EventHandler <InitializationCompletedEventArgs>(OnViewModelInitialization);
 }
Пример #12
0
 void Browser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     ParseViewportMeta();
 }
Пример #13
0
 void Browser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     // How to set base URL of document? Would be nice for relative URLs in for instance stylesheets
 }
Пример #14
0
 private void Application_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
 }
Пример #15
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     Map.Layers.Clear();
 }
Пример #16
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     allPersons.ItemsSource = DataRepository.GroupedPersons;
 }
Пример #17
0
 private void wbBrowser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     this.popup.IsOpen         = false;
     btnAuthenticate.IsEnabled = true;
 }
Пример #18
0
 protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e)
 {
     // Save changes to the database.
     App.ViewModel.SaveChangesToDB();
     App.ViewModel.LoadAllItemFromButton();
 }
Пример #20
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     mainitempage.DefaultItem = mainitempage.Items[0];
     // App.ViewModel.LoadCollectionsFromDatabase();
 }
 protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs args)
 {
     App.Engine.LibraryModel.SaveLibraryState();
     base.OnNavigatedFrom(args);
 }
Пример #22
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            //Trace the event for debug purposes
            Utils.Trace("Navigated To MainPage");

            //Check if page state has saved focus and apply it back
            if (State.ContainsKey("FocusedElement"))
            {
                focusedElement = this.FindName(State["FocusedElement"] as string) as Control;
                bFocused       = true;

                //if (null != focusedElement)
                //    focusedElement.Focus();
            }
            else
            {
                bFocused = false;
            }

            TravelReportInfo travelReportInfo = ((App.Current.RootVisual as PhoneApplicationFrame).DataContext as TravelReportInfo);

            if (State.ContainsKey("txtDestination"))
            {
                travelReportInfo.Destination = State["txtDestination"] as string;
            }

            if (State.ContainsKey("txtJustification"))
            {
                travelReportInfo.Justification = State["txtJustification"] as string;
            }

            if (State.ContainsKey("txtToDate"))
            {
                if (!bToDateChangedNavigateTo)
                {
                    travelReportInfo.LastDay = DateTime.Parse(State["txtToDate"] as string);
                    txtToDate.Value          = travelReportInfo.LastDay;//this operation call txtFromDate_ValueChanged event
                    bToDateChangedNavigateTo = false;
                }
                else
                {
                    bToDateChangedNavigateTo = false;
                }
            }
            else
            {
                //format todata
                txtToDate.Value          = travelReportInfo.LastDay;
                bToDateChangedNavigateTo = false;
            }

            if (State.ContainsKey("txtFromDate"))
            {
                if (!bFromDateChangedNavigateTo)
                {
                    travelReportInfo.FirstDay = DateTime.Parse(State["txtFromDate"] as string);
                    txtFromDate.Value         = travelReportInfo.FirstDay;//this operation call txtFromDate_ValueChanged event

                    bFromDateChangedNavigateTo = false;
                }
                else
                {
                    bFromDateChangedNavigateTo = false;
                }
            }
            else
            {
                // format fromdata
                txtFromDate.Value          = travelReportInfo.FirstDay;
                bFromDateChangedNavigateTo = false;
            }

            base.OnNavigatedTo(e);
        }
            private void webBrowser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
            {
                String logString = (e != null && e.Uri != null ? e.Uri.ToString() : "");

                Utils.log("AppLinkRedirector Navigated (" + logString + ")");
            }
Пример #24
0
 private void WebBrowser_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     LoadData();
 }
Пример #25
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            UpdateVersion();
        }
Пример #26
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     lbPercursos.SelectedIndex = -1;
 }
Пример #27
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     id = NavigationContext.QueryString["id"];
 }
Пример #28
0

        
Пример #29
0
 private void calendarDataFrame_LoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e)
 {
     bind(data);
 }
Пример #30
0
        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            this.accountControl.SetContent();

            base.OnNavigatedTo(e);
        }