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); } }
internal void NavigateToBirthdays(bool isHoldingEvent) { if (this.IsOnBirthdaysPage) { this.HandleSamePageNavigation(null, false); } else { MenuUC.PublishMenuItemClickedEvent("birthdays"); this.NavigateOnMenuClick((Action)(() => Navigator.Current.NavigateToBirthdaysPage()), !isHoldingEvent); } }
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); } }
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); } }
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); } }
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); } }
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); } }