Ejemplo n.º 1
0
        private void PullToRefreshBox_RefreshInvoked(muxc.RefreshContainer sender, muxc.RefreshRequestedEventArgs args)
        {
            var deferral = args.GetDeferral();

            try
            {
                if (ApiHelper.IsLogin())
                {
                    myban.Visibility = Visibility.Visible;
                    LoadMy();
                }
                else
                {
                    myban.Visibility = Visibility.Collapsed;
                }
                if (list_ban_jp.ItemsSource == null)
                {
                    LoadHome();
                }
            }
            finally
            {
                deferral.Complete();
            }
        }
Ejemplo n.º 2
0
        private void PullToRefreshBox_RefreshInvoked(muxc.RefreshContainer sender, muxc.RefreshRequestedEventArgs args)
        {
            var deferral = args.GetDeferral();

            try
            {
                GetLiveInfo();
            }
            finally
            {
                deferral.Complete();
            }
        }
Ejemplo n.º 3
0
        private void PullToRefreshBox_RefreshInvoked(muxc.RefreshContainer sender, muxc.RefreshRequestedEventArgs args)
        {
            var deferral = args.GetDeferral();

            try
            {
                ls_dynamic.ClearData();
                GetDynamic();
            }
            finally
            {
                deferral.Complete();
            }
        }
Ejemplo n.º 4
0
 private async void RefreshContainer_RefreshRequested(Controls.RefreshContainer sender, Controls.RefreshRequestedEventArgs args)
 {
     using (var RefreshCompletionDeferral = args.GetDeferral())
     {
         await Refresh();
     }
 }
Ejemplo n.º 5
0
 private void RefreshContainer_RefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args)
 {
     RefreshProjects();
 }
Ejemplo n.º 6
0
 private async void RefreshContainer_RefreshRequested(RefreshContainer sender, RefreshRequestedEventArgs args)
 {
     using (var deferral = args.GetDeferral())
     {
         await Refresh();
     }
 }
Ejemplo n.º 7
0
 private void RefreshContainer_RefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args)
 {
     dynamicVM.Refresh();
 }