public SocialView() { //dual view top 2 tabs 1 contacts and 1 invites, contacts shows list of people known and other view shows messages sent to user this.InitializeComponent(); Runtime = RuntimeInfo.Instance; SocialFrame.Navigate(typeof(Contacts), Runtime.LoggedInUser); }
public void DenyRequest() { selectedMessage.IsAccepted = false; //is accepted means that the message was responded to with noting else done //update message in db Runtime.AppController.UpdateMessage(selectedMessage); //Update view activeUser.Notifications.Remove(selectedMessage); selectedMessage = null; SocialFrame.Navigate(typeof(Notifications), SocialFrame); }
public void AcceptRequest() { //selectedMessage.Sender.MyWishlists.FirstOrDefault(w => w == selectedMessage.RelatedWishlist).addBuyer(activeUser); selectedMessage.IsAccepted = true; Runtime.AppController.RespondToMessage(selectedMessage); //Update view activeUser.Notifications.Remove(selectedMessage); selectedMessage = null; SocialFrame.Navigate(typeof(Notifications), SocialFrame); }
public void ViewNotifications_Click(object sender, RoutedEventArgs e) { SocialFrame.Navigate(typeof(Notifications), this.SocialFrame); }
public void ViewContacts_Click(object sender, RoutedEventArgs e) { SocialFrame.Navigate(typeof(Contacts), Runtime.LoggedInUser); }
public void ViewNotifications_Click(object sender, RoutedEventArgs e) { SocialFrame.Navigate(typeof(Notifications), Runtime.LoggedInUser); }