/// <summary> /// Interaction logic for closing popup prompt /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Close(object sender, RoutedEventArgs e) { this.Close(); if (main != null) { main.OnCloseMessagePrompt(); } else if (parent.GetType() == typeof(ProfilePageOtherUser)) { ProfilePageOtherUser castedParent = (ProfilePageOtherUser)parent; castedParent.OnCloseMessagePrompt(); } else if (parent.GetType() == typeof(MessagesPage)) { MessagesPage castedParent = (MessagesPage)parent; castedParent.OnCloseMessagePrompt(); } }
public MainWindow() { InitializeComponent(); contentControl.Content = currPhotosPage; HighlightTab(); //PhotosTab.Foreground = new SolidColorBrush(Color.FromRgb(116, 118, 119)); FillNotificationMenu(); FillMessageNotificationMenu(); currDiscussionPage.SetParent(this); currPhotosPage.SetParent(this); currPhotosPage.SortByPopular(); currFollowingPage = new FollowingPage(this, followingSomeone); currSavedPage = new SavedPage(this); currMessagesPage = new MessagesPage(this); SignOut(); }
/// <summary> /// Interaction logic for clicking the cancel confirmation /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Cancel(object sender, RoutedEventArgs e) { this.Close(); if (main != null) { main.OnCloseMessagePrompt(); } else if (parent.GetType() == typeof(ProfilePageOtherUser)) { ProfilePageOtherUser castedParent = (ProfilePageOtherUser)parent; castedParent.OnCloseMessagePrompt(); } else if (parent.GetType() == typeof(MessagesPage)) { MessagesPage castedParent = (MessagesPage)parent; castedParent.OnCloseMessagePrompt(); } else if ((parent.GetType() == typeof(PhotoPopup)) || (parent.GetType() == typeof(DiscussionPopup))) { // Do nothing. } }
public HelpPromptPopup(MessagesPage parent) { InitializeComponent(); this.parent = parent; }
public MessageDevelopmentPrompt(MessagesPage parent) { InitializeComponent(); this.parent = parent; }