private async void RefreshContainer_RefreshRequested(RefreshContainer sender, RefreshRequestedEventArgs args)
 {
     using (var deferral = args.GetDeferral())
     {
         await Refresh();
     }
 }
Exemple #2
0
 private async void RefreshContainer_RefreshRequested(Controls.RefreshContainer sender, Controls.RefreshRequestedEventArgs args)
 {
     using (var RefreshCompletionDeferral = args.GetDeferral())
     {
         await Refresh();
     }
 }
        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();
            }
        }
Exemple #4
0
        private void PullToRefreshBox_RefreshInvoked(muxc.RefreshContainer sender, muxc.RefreshRequestedEventArgs args)
        {
            var deferral = args.GetDeferral();

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

            try
            {
                ls_dynamic.ClearData();
                GetDynamic();
            }
            finally
            {
                deferral.Complete();
            }
        }
Exemple #6
0
 private void RefreshContainer_RefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args)
 {
     RefreshProjects();
 }
 private void RefreshContainer_RefreshRequested(Microsoft.UI.Xaml.Controls.RefreshContainer sender, Microsoft.UI.Xaml.Controls.RefreshRequestedEventArgs args)
 {
     dynamicVM.Refresh();
 }