async void Flowlistview_FlowItemTapped(object sender, ItemTappedEventArgs e)
        {
            try
            {
                Book_summariesModel _model = new Book_summariesModel();
                var item = e.Item as AudioList;
                _model.user_id   = item.user_id;
                _model.s_id      = item.s_id;
                _model.song_path = item.song_path;

                _model.image_path  = item.image_path;
                _model.book_name   = item.book_name;
                _model.author_name = item.author_name;
                _model.count_like  = item.count_like;
                _model.comment     = item.comment;
                if (string.IsNullOrEmpty(_profilePic))
                {
                    await Navigation.PushModalAsync(new AudioPlayerPage(StaticDataModel.CurrentContext, _model));
                }
                else
                {
                    await Navigation.PushModalAsync(new AudioPlayerPage(StaticDataModel.CurrentContext, _model, _profilePic));
                }
            }
            catch (Exception ex)
            {
            }
        }
Пример #2
0
 async void lecture_clicked(object sender, System.EventArgs e)
 {
     try
     {
         var item1 = (Xamarin.Forms.Button)sender;
         for (int i = 0; i < list_LectureTraining.Count; i++)
         {
             if (item1.CommandParameter.ToString() == list_LectureTraining[i].s_id)
             {
                 _model = new Book_summariesModel();
                 var item = list_LectureTraining[i];
                 _model.u_id        = item.u_id;
                 _model.s_id        = item.s_id;
                 _model.song_path   = item.song_path;
                 _model.profile_pic = item.profile_pic;
                 _model.image_path  = item.image_path;
                 _model.book_name   = item.book_name;
                 _model.author_name = item.author_name;
                 _model.count_like  = item.count_like;
                 _model.first_name  = item.first_name;
                 _model.last_name   = item.last_name;
                 _model.article_url = item.article_url;
                 _model.video_url   = item.video_url;
                 _model.comment     = item.comment;
                 await Navigation.PushModalAsync(new AudioPlayerPage(_context, _model));
             }
         }
     }
     catch (Exception ex)
     {
     }
 }
Пример #3
0
 public AudioRecordingPage(MainPage context)
 {
     _context = context;
     InitializeComponent();
     NavigationPage.SetHasNavigationBar(this, false);
     SetData();
     categoryypicker.SelectedIndexChanged += Categoryypicker_SelectedIndexChanged;
     btnSubmit.Clicked += BtnSubmit_Clicked;
     _uploadAudioModel  = new Book_summariesModel();
 }
 public AudioPlayerPage(MainPage context, Book_summariesModel book_summeriesModel)
 {
     _model   = book_summeriesModel;
     _context = context;
     InitializeComponent();
     NavigationPage.SetHasNavigationBar(this, false);
     CrossMediaManager.Current.PlayingChanged += Current_PlayingChanged;
     //GetUserDetails().Wait();
     SetData();
     InitControls();
     PrepareUI();
 }
        public AudioPlayerPage(MainPage context, Book_summariesModel book_summeriesModel, string profile_pic)
        {
            InitializeComponent();

            _profilePic = profile_pic;
            _model      = book_summeriesModel;
            _context    = context;
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            CrossMediaManager.Current.PlayingChanged += Current_PlayingChanged;

            SetData();
            InitControls();

            PrepareUI();
        }
Пример #6
0
        async void Flowlistview_FlowItemTapped(object sender, ItemTappedEventArgs e)
        {
            try
            {
                Book_summariesModel _model = new Book_summariesModel();
                var item = e.Item as AllAudioModel;
                _model.user_id = item.user_id;
                //_model.s_id = item.s_id;
                _model.song_path = item.song_path;

                _model.image_path  = item.image_path;
                _model.book_name   = item.book_name;
                _model.author_name = item.author_name;
                _model.count_like  = item.count_like;
                _model.article_url = item.article_url;
                _model.video_url   = item.video_url;
                _model.comment     = item.comment;
                await Navigation.PushModalAsync(new AudioPlayerPage(StaticDataModel.CurrentContext, _model));
            }
            catch (Exception ex)
            {
            }
        }