Beispiel #1
0
        private void Messages_OnClicked(object sender, System.Windows.Input.GestureEventArgs e)
        {
            bool flag1 = e == null;
            bool flag2 = this.IsOnMessagesPage;

            if (!flag2 & flag1)
            {
                using (IEnumerator <JournalEntry> enumerator = ((PhoneApplicationFrame)Application.Current.RootVisual).BackStack.GetEnumerator())
                {
                    while (((IEnumerator)enumerator).MoveNext())
                    {
                        if (enumerator.Current.Source.OriginalString.Contains("ConversationsPage.xaml"))
                        {
                            flag2 = true;
                            break;
                        }
                    }
                }
            }
            if (flag2)
            {
                this.HandleSamePageNavigation(null, false);
            }
            else
            {
                MenuUC.PublishMenuItemClickedEvent("messages");
                this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToConversations()), !flag1);
            }
        }
Beispiel #2
0
 internal void NavigateToBirthdays(bool isHoldingEvent)
 {
     if (this.IsOnBirthdaysPage)
     {
         this.HandleSamePageNavigation(null, false);
     }
     else
     {
         MenuUC.PublishMenuItemClickedEvent("birthdays");
         this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToBirthdaysPage()), !isHoldingEvent);
     }
 }
Beispiel #3
0
 private void Settings_OnClicked(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this.IsOnSettingsPage)
     {
         this.HandleSamePageNavigation(null, false);
     }
     else
     {
         bool flag = e == null;
         MenuUC.PublishMenuItemClickedEvent("settings");
         this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToSettings()), !flag);
     }
 }
Beispiel #4
0
 private void GamesRequests_Tap(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this.IsOnGamesPage)
     {
         this.HandleSamePageNavigation(null, false);
     }
     else
     {
         bool flag = e == null;
         MenuUC.PublishMenuItemClickedEvent("games_requests");
         this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToGames(0, false)), !flag);
     }
 }
Beispiel #5
0
 private void Communities_OnClicked(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this.IsOnCommunitiesPage)
     {
         this.HandleSamePageNavigation(null, false);
     }
     else
     {
         bool flag = e == null;
         MenuUC.PublishMenuItemClickedEvent("groups");
         this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToGroups(AppGlobalStateManager.Current.LoggedInUserId, "", false, 0, 0, "", false, "", 0L)), !flag);
     }
 }
Beispiel #6
0
 private void Friends_OnClicked(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this.IsOnFriendsPage)
     {
         this.HandleSamePageNavigation(null, false);
     }
     else
     {
         bool flag = e == null;
         MenuUC.PublishMenuItemClickedEvent("friends");
         this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToFriends(AppGlobalStateManager.Current.LoggedInUserId, "", false, FriendsPageMode.Default)), !flag);
     }
 }
Beispiel #7
0
 private void Profile_OnClicked(object sender, System.Windows.Input.GestureEventArgs e)
 {
     if (this.IsOnLoggedInUserPage)
     {
         this.HandleSamePageNavigation(null, false);
     }
     else
     {
         bool flag = e == null;
         MenuUC.PublishMenuItemClickedEvent("self");
         this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToUserProfile(AppGlobalStateManager.Current.LoggedInUserId, AppGlobalStateManager.Current.GlobalState.LoggedInUser.Name, "", false)), !flag);
     }
 }