Beispiel #1
0
        //磁贴
        static public void UpdateTileItem()
        {
            var updater = TileUpdateManager.CreateTileUpdaterForApplication();

            updater.EnableNotificationQueue(true);
            updater.Clear();
            if (MatchesVM.GetMatchesVM().AllMatches.Count == 0)
            {
                return;
            }
            else
            {
                int count = 0;
                foreach (var match in MatchesVM.GetMatchesVM().AllMatches)
                {
                    ++count;
                    var xmlDoc = TileService.CreateFiles(match);
                    TileNotification notification = new TileNotification(xmlDoc);
                    updater.Update(notification);
                    if (count == 5)
                    {
                        break;
                    }
                }
            }
        }
Beispiel #2
0
 private void Exit_Clicked(object sender, RoutedEventArgs e)
 {
     UserInfo.UserName       = "";
     UserInfo.Password       = "";
     UserInfo.IsLogged       = false;
     UserName.Text           = "";
     Password.Password       = "";
     Login_Button.Visibility = Visibility.Visible;
     UserInfoState.Hide();
     errorMessage.Text = "";
     ContentFrame.Navigate(typeof(Home));
     BattleVM.GetBattleVM().AllBattles.Clear();
     AthleteVM.GetAthleteVM().AllAthletes.Clear();
     MatchesVM.GetMatchesVM().AllMatches.Clear();
     ResultVM.GetResultVM().AllResults.Clear();
     NavMenuPrimaryListView.IsItemClickEnabled = false;
     NavMenuBottomListView.IsItemClickEnabled  = false;
     NavMenuMatchListView.Visibility           = Visibility.Collapsed;
     NavMenuMatchInfoListView.Visibility       = Visibility.Collapsed;
     API.GetAPI().SignOut();
 }