public Import_Page() { try { InitializeComponent(); BindingContext = new RefreshMVVM(this); PullToRefreshLayoutView.SetBinding <RefreshMVVM>(PullToRefreshLayout.IsRefreshingProperty, vm => vm.IsBusy, BindingMode.OneWay); PullToRefreshLayoutView.SetBinding <RefreshMVVM>(PullToRefreshLayout.RefreshCommandProperty, vm => vm.RefreshCommand); if (Settings.Show_ADMOB_On_Timeline) { if (Device.OS == TargetPlatform.iOS) { AdmobBanner.IsVisible = false; GridHieght.RowDefinitions[2].Height = 0; } else { AdmobBanner.IsVisible = true; } } else { AdmobBanner.IsVisible = false; GridHieght.RowDefinitions[2].Height = 0; } Import(); } catch (Exception ex) { var exception = ex.ToString(); } }
public ChannelUsers_Page(Classes.Subscriptions subscriptions, Classes.Video Video_Data, Classes.Channel Channel) { try { InitializeComponent(); if (Device.OS == TargetPlatform.iOS) { NavigationPage.SetHasNavigationBar(this, true); } else { NavigationPage.SetHasNavigationBar(this, false); } BindingContext = new RefreshMVVM(this); PullToRefreshLayoutView.SetBinding <RefreshMVVM>(PullToRefreshLayout.IsRefreshingProperty, vm => vm.IsBusy, BindingMode.OneWay); PullToRefreshLayoutView.SetBinding <RefreshMVVM>(PullToRefreshLayout.RefreshCommandProperty, vm => vm.RefreshCommand); if (subscriptions != null) { _Subscriptions = subscriptions; URl = subscriptions.Owner_url; Id_Channel = subscriptions.Owner_id; } else if (Video_Data != null) { _Video_Data = Video_Data; URl = Video_Data.Owner_url; Id_Channel = Video_Data.Owner_id; } else { _Channel = Channel; URl = Channel.Channel_url; Id_Channel = Channel.Channel_id; } Get_ChannelUsers_Info_Api(); } catch (Exception ex) { var exception = ex.ToString(); } }
public Home_Page() { try { InitializeComponent(); BindingContext = new RefreshMVVM(this); PullToRefreshLayoutView.SetBinding <RefreshMVVM>(PullToRefreshLayout.IsRefreshingProperty, vm => vm.IsBusy, BindingMode.OneWay); PullToRefreshLayoutView.SetBinding <RefreshMVVM>(PullToRefreshLayout.RefreshCommandProperty, vm => vm.RefreshCommand); if (Settings.VimeoStyle) { TopHeaderBAR.IsVisible = false; } if (Hamburg_Page.IsLogin) { if (MyChannel_Page.Avatar != null) { AvatarImage.Source = ImageSource.FromUri(new Uri(MyChannel_Page.Avatar)); } else { AvatarImage.Source = "NoProfileImage.png"; } } StyleThemeChanger(); if (Classes.CatigoryList.Count > 0) { //Add Top Category Add_Category_Section(Classes.CatigoryList); } Get_Video(); } catch (Exception ex) { var exception = ex.ToString(); } }