Exemplo n.º 1
0
        /// <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();
            }
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        /// <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.
            }
        }
Exemplo n.º 4
0
        public HelpPromptPopup(MessagesPage parent)
        {
            InitializeComponent();

            this.parent = parent;
        }
        public MessageDevelopmentPrompt(MessagesPage parent)
        {
            InitializeComponent();

            this.parent = parent;
        }