/// <summary>
 /// Loads the content from specified uri.
 /// </summary>
 /// <param name="uri">The content uri</param>
 /// <returns>The loaded content.</returns>
 protected override object LoadContent(Uri uri)
 {
     BookListTransition tr = new BookListTransition();
     LastLoad = uri;
     Transition.move(new BookList());
     //loadData(tr);
     return Transition;
 }
Exemple #2
0
        /// <summary>
        /// Loads the content from specified uri.
        /// </summary>
        /// <param name="uri">The content uri</param>
        /// <returns>The loaded content.</returns>
        protected override object LoadContent(Uri uri)
        {
            BookListTransition tr = new BookListTransition();

            LastLoad = uri;
            Transition.move(new BookList());
            //loadData(tr);
            return(Transition);
        }
Exemple #3
0
        private async void loadData(BookListTransition tr)
        {
            //tr.loader.IsActive = true;

            await Task.Delay(10).ContinueWith(_ =>
            {
                tr.move(new BookList());
                // tr.loader.IsActive = false;
                Transition = tr;
            });
        }
        private async void loadData(BookListTransition tr)
        {
            //tr.loader.IsActive = true;

            await Task.Delay(10).ContinueWith(_ =>
            {
                tr.move(new BookList());
               // tr.loader.IsActive = false;
                Transition = tr;
            });
        }
        private void menu_SelectedSourceChanged(object sender, FirstFloor.ModernUI.Windows.Controls.SourceEventArgs e)
        {
            if (loader == null)
                return;

            if (e.Source.ToString().Trim().Contains(loader.LastLoad?.ToString().Trim()))
            {
                BookListTransition tr = new BookListTransition();
                //loader.Transition.move(tr);
                tr.loadAsync(loader.Transition);

            }
        }
Exemple #6
0
 private void menu_SelectedSourceChanged(object sender, SourceEventArgs e)
 {
     if (loader != null)
     {
         int index = e.Source.ToString().IndexOf("#");
         Service.getRubrique().SelectedRubrique = e.Source.ToString().Substring(index + 1);
         string cat = Service.getRubrique().SelectedRubrique;
         if (e.Source.ToString().Trim().Contains(loader.LastLoad?.ToString().Trim()))
         {
             BookListTransition tr = new BookListTransition();
             // loader.Transition.move(tr);
             view = new BookList();
             loader.Transition.move(view);
         }
     }
 }
        private void menu_SelectedSourceChanged(object sender, SourceEventArgs e)
        {

            if (loader != null)
            {

                int index = e.Source.ToString().IndexOf("#");
                Service.getRubrique().SelectedRubrique = e.Source.ToString().Substring(index + 1);
                string cat = Service.getRubrique().SelectedRubrique;
                if (e.Source.ToString().Trim().Contains(loader.LastLoad?.ToString().Trim()))
                {
                    BookListTransition tr = new BookListTransition();
                    // loader.Transition.move(tr);
                    view = new BookList();
                    loader.Transition.move(view);
                }
              
            }



        }
Exemple #8
0
 public void reload(BookListTransition tr)
 {
     loadData(tr);
 }
Exemple #9
0
 public PageLoader(BookListTransition tr)
 {
     Transition = tr;
 }
 public void reload(BookListTransition tr)
 {
     loadData(tr);
 }
 public PageLoader(BookListTransition tr)
 {
     Transition = tr;
 }